mirror of
https://gitee.com/huoyo/ko-time.git
synced 2025-12-07 09:18:31 +08:00
fix some bugs
This commit is contained in:
parent
e6249fbeaa
commit
0800a48edd
@ -60,7 +60,9 @@ public class MemoryBase implements GraphService {
|
|||||||
|
|
||||||
public void addParamAnalyse(String methodId, Parameter[] names, Object[] values, double v) {
|
public void addParamAnalyse(String methodId, Parameter[] names, Object[] values, double v) {
|
||||||
List<String> params = new ArrayList<>();
|
List<String> params = new ArrayList<>();
|
||||||
for (int i = 0; i < names.length; i++) {
|
if (names!=null) {
|
||||||
|
int namesLen = names.length;
|
||||||
|
for (int i = 0; i < namesLen; i++) {
|
||||||
Class<?> type = names[i].getType();
|
Class<?> type = names[i].getType();
|
||||||
if (baseTypes.contains(type)) {
|
if (baseTypes.contains(type)) {
|
||||||
if (values[i] != null) {
|
if (values[i] != null) {
|
||||||
@ -84,6 +86,7 @@ public class MemoryBase implements GraphService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
String paramsKey = "-";
|
String paramsKey = "-";
|
||||||
if (params.size()>0) {
|
if (params.size()>0) {
|
||||||
paramsKey = String.join("-", params);
|
paramsKey = String.join("-", params);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user