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 {
5959/** A reference type that extends a parameterization the Promise type. */
6060private class RatpackPromise extends RefType {
6161 RatpackPromise ( ) {
62- getSourceDeclaration ( ) .getASourceSupertype * ( ) .hasQualifiedName ( "ratpack.exec" , "Promise" )
62+ this . getSourceDeclaration ( ) .getASourceSupertype * ( ) .hasQualifiedName ( "ratpack.exec" , "Promise" )
6363 }
6464}
6565
@@ -68,13 +68,12 @@ private class RatpackPromise extends RefType {
6868 */
6969private class RatpackPromiseFluentMethod extends FluentMethod {
7070 RatpackPromiseFluentMethod ( ) {
71- getDeclaringType ( ) instanceof RatpackPromise and
72- not isStatic ( ) and
71+ not this .isStatic ( ) and
7372 // It's generally safe to assume that if the return type exactly matches the declaring type, `this` will be returned.
7473 exists ( ParameterizedType t |
7574 t instanceof RatpackPromise and
76- t = getDeclaringType ( ) and
77- t = getReturnType ( )
75+ t = this . getDeclaringType ( ) and
76+ t = this . getReturnType ( )
7877 )
7978 }
8079}
You can’t perform that action at this time.
0 commit comments