File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
java/ql/lib/semmle/code/java/dataflow/internal Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -596,12 +596,13 @@ private MethodAccess callReturningSameType(Expr ref) {
596
596
}
597
597
598
598
private SrcRefType entrypointType ( ) {
599
- result =
600
- pragma [ only_bind_out ] ( any ( RemoteFlowSource s | s instanceof DataFlow:: ExplicitParameterNode ) )
601
- .getType ( )
602
- .( RefType )
603
- .getASubtype * ( )
604
- .getSourceDeclaration ( ) or
599
+ exists ( RemoteFlowSource s , RefType t |
600
+ s instanceof DataFlow:: ExplicitParameterNode and
601
+ t = pragma [ only_bind_out ] ( s ) .getType ( ) and
602
+ not t instanceof TypeObject and
603
+ result = t .getASubtype * ( ) .getSourceDeclaration ( )
604
+ )
605
+ or
605
606
result = entrypointType ( ) .getAField ( ) .getType ( ) .( RefType ) .getSourceDeclaration ( )
606
607
}
607
608
You can’t perform that action at this time.
0 commit comments