File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ private import semmle.code.java.dataflow.ExternalFlow
8
8
private import semmle.code.java.dataflow.FlowSummary
9
9
private import semmle.code.java.dataflow.internal.FlowSummaryImpl
10
10
private import FlowTestCaseUtils
11
+ private import FlowTestCase
11
12
12
13
/**
13
14
* Returns a valid Java token naming the field `fc`.
@@ -157,7 +158,7 @@ private class DefaultGetMethod extends GetMethod {
157
158
override predicate appliesTo ( Type t , Content c1 ) {
158
159
c = c1 and
159
160
// suppress unused variable warning
160
- t = t
161
+ t = [ any ( TestCase tc ) . getOutputType ( ) , any ( VoidType v ) ]
161
162
}
162
163
163
164
bindingset [ arg]
@@ -297,7 +298,7 @@ private class DefaultGenMethod extends GenMethod {
297
298
override predicate appliesTo ( Type t , Content c1 ) {
298
299
c = c1 and
299
300
// suppress unused variable warning
300
- t = t
301
+ t = [ any ( TestCase tc ) . getInputType ( ) , any ( VoidType v ) ]
301
302
}
302
303
303
304
bindingset [ arg]
You can’t perform that action at this time.
0 commit comments