File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
java/ql/lib/semmle/code/java/frameworks/ratpack Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ private class RatpackExecModel extends SummaryModelCsv {
59
59
/** A reference type that extends a parameterization the Promise type. */
60
60
private class RatpackPromise extends RefType {
61
61
RatpackPromise ( ) {
62
- getSourceDeclaration ( ) .getASourceSupertype * ( ) .hasQualifiedName ( "ratpack.exec" , "Promise" )
62
+ this . getSourceDeclaration ( ) .getASourceSupertype * ( ) .hasQualifiedName ( "ratpack.exec" , "Promise" )
63
63
}
64
64
}
65
65
@@ -68,13 +68,12 @@ private class RatpackPromise extends RefType {
68
68
*/
69
69
private class RatpackPromiseFluentMethod extends FluentMethod {
70
70
RatpackPromiseFluentMethod ( ) {
71
- getDeclaringType ( ) instanceof RatpackPromise and
72
- not isStatic ( ) and
71
+ not this .isStatic ( ) and
73
72
// It's generally safe to assume that if the return type exactly matches the declaring type, `this` will be returned.
74
73
exists ( ParameterizedType t |
75
74
t instanceof RatpackPromise and
76
- t = getDeclaringType ( ) and
77
- t = getReturnType ( )
75
+ t = this . getDeclaringType ( ) and
76
+ t = this . getReturnType ( )
78
77
)
79
78
}
80
79
}
You can’t perform that action at this time.
0 commit comments