4
This commit is contained in:
@@ -502,13 +502,13 @@ public class VariableTracer {
|
||||
|
||||
public String resolveArgumentValue(String argValue, String callerMethod, List<String> path, int pathIndex, Map<String, List<CallEdge>> callGraph) {
|
||||
if (argValue == null) return null;
|
||||
if (argValue.contains(".") || argValue.startsWith("new ") || argValue.matches(".*[0-9].*")) {
|
||||
if (argValue.contains(".") || argValue.startsWith("new ") || argValue.matches(".*[0-9].*") || (argValue.startsWith("\"") && argValue.endsWith("\""))) {
|
||||
return argValue;
|
||||
}
|
||||
|
||||
String tracedLocal = traceLocalVariable(callerMethod, argValue);
|
||||
if (tracedLocal != null && !tracedLocal.equals(argValue)) {
|
||||
if (tracedLocal.contains(".") || tracedLocal.startsWith("new ") || tracedLocal.matches(".*[0-9].*") || tracedLocal.contains("(")) {
|
||||
if (tracedLocal.contains(".") || tracedLocal.startsWith("new ") || tracedLocal.matches(".*[0-9].*") || tracedLocal.contains("(") || (tracedLocal.startsWith("\"") && tracedLocal.endsWith("\""))) {
|
||||
return tracedLocal;
|
||||
}
|
||||
argValue = tracedLocal;
|
||||
|
||||
Reference in New Issue
Block a user