mirror of
https://gitee.com/huoyo/ko-time.git
synced 2025-12-06 16:58:26 +08:00
fix some bugs
This commit is contained in:
parent
e6249fbeaa
commit
0800a48edd
@ -60,26 +60,29 @@ 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) {
|
||||||
Class<?> type = names[i].getType();
|
int namesLen = names.length;
|
||||||
if (baseTypes.contains(type)) {
|
for (int i = 0; i < namesLen; i++) {
|
||||||
if (values[i] != null) {
|
Class<?> type = names[i].getType();
|
||||||
params.add(names[i].getName());
|
if (baseTypes.contains(type)) {
|
||||||
}
|
if (values[i] != null) {
|
||||||
} else {
|
params.add(names[i].getName());
|
||||||
if (type == HttpServletRequest.class) {
|
}
|
||||||
continue;
|
} else {
|
||||||
}
|
if (type == HttpServletRequest.class) {
|
||||||
Field[] declaredFields = values[i].getClass().getDeclaredFields();
|
continue;
|
||||||
for (Field field : declaredFields) {
|
}
|
||||||
field.setAccessible(true);
|
Field[] declaredFields = values[i].getClass().getDeclaredFields();
|
||||||
try {
|
for (Field field : declaredFields) {
|
||||||
Object value = field.get(values[i]);
|
field.setAccessible(true);
|
||||||
if (value != null) {
|
try {
|
||||||
params.add(field.getName());
|
Object value = field.get(values[i]);
|
||||||
|
if (value != null) {
|
||||||
|
params.add(field.getName());
|
||||||
|
}
|
||||||
|
} catch (IllegalAccessException e) {
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
} catch (IllegalAccessException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user