@@ -60,16 +60,16 @@ protected Collection<? extends Query> generate(Edge cfgEdge) {
60
60
61
61
// Find source methods.
62
62
for (Method flowMethod : this .taintFlow .getFrom ()) {
63
- if (ToStringEquals (statement .getMethod (),
64
- WrapInAngularBrackets (flowMethod .getSignature ()))) {
63
+ if (toStringEquals (statement .getMethod (),
64
+ wrapInAngularBrackets (flowMethod .getSignature ()))) {
65
65
sourceMethods .add (statement .getMethod ());
66
66
}
67
67
}
68
68
69
69
// Find target methods.
70
70
for (Method flowMethod : this .taintFlow .getTo ()) {
71
- if (ToStringEquals (statement .getMethod (),
72
- WrapInAngularBrackets (flowMethod .getSignature ()))) {
71
+ if (toStringEquals (statement .getMethod (),
72
+ wrapInAngularBrackets (flowMethod .getSignature ()))) {
73
73
sinkMethods .add (statement .getMethod ());
74
74
}
75
75
}
@@ -82,10 +82,10 @@ private Collection<Val> generateSourceVariables(TaintFlowQuery partialFlow,
82
82
83
83
for (Method sourceMethod : partialFlow .getFrom ()) {
84
84
85
- String sourceSootSignature = WrapInAngularBrackets (sourceMethod .getSignature ());
85
+ String sourceSootSignature = wrapInAngularBrackets (sourceMethod .getSignature ());
86
86
Collection <Val > out = Sets .newHashSet ();
87
87
88
- if (ToStringEquals (statement .getMethod (), sourceSootSignature ) &&
88
+ if (toStringEquals (statement .getMethod (), sourceSootSignature ) &&
89
89
statement .isIdentityStmt ()) {
90
90
91
91
// Left and Right Op() methods don't work for IdentityStmt inside JimpleStatement.
@@ -119,7 +119,7 @@ private Collection<Val> generateSourceVariables(TaintFlowQuery partialFlow,
119
119
return out ;
120
120
121
121
} else if (statement .containsInvokeExpr ()
122
- && ToStringEquals (statement .getInvokeExpr ().getMethod (),
122
+ && toStringEquals (statement .getInvokeExpr ().getMethod (). getSignature (),
123
123
sourceSootSignature )) {
124
124
125
125
// Taint the return value
@@ -158,11 +158,11 @@ private Collection<Val> generatedSinkVariables(TaintFlowQuery partialFlow,
158
158
159
159
for (Method sinkMethod : partialFlow .getTo ()) {
160
160
161
- String sinkSootSignature = WrapInAngularBrackets (sinkMethod .getSignature ());
161
+ String sinkSootSignature = wrapInAngularBrackets (sinkMethod .getSignature ());
162
162
Collection <Val > out = Sets .newHashSet ();
163
163
164
164
if (statement .containsInvokeExpr () &&
165
- ToStringEquals (statement .getInvokeExpr ().getMethod (),
165
+ toStringEquals (statement .getInvokeExpr ().getMethod (). getSignature (),
166
166
sinkSootSignature )) {
167
167
168
168
// Taint the return value.
@@ -190,11 +190,11 @@ private Collection<Val> generatedSinkVariables(TaintFlowQuery partialFlow,
190
190
return Collections .emptySet ();
191
191
}
192
192
193
- private static String WrapInAngularBrackets (String value ) {
193
+ private static String wrapInAngularBrackets (String value ) {
194
194
return "<" + value + ">" ;
195
195
}
196
196
197
- private static boolean ToStringEquals (Object object1 , Object object2 ) {
197
+ private static boolean toStringEquals (Object object1 , Object object2 ) {
198
198
return object1 .toString ().equals (object2 .toString ());
199
199
}
200
200
0 commit comments