We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc4604f commit c1fd247Copy full SHA for c1fd247
java/ql/src/utils/modelgenerator/internal/CaptureModelsSpecific.qll
@@ -74,13 +74,18 @@ class TargetApiSpecific extends Callable {
74
isRelevantForModels(this)
75
}
76
77
+ /** Gets a super implementation from source, if any. */
78
+ private Method getSuperImpl() {
79
+ exists(Method m | m = superImpl(this) and m.fromSource() | result = m)
80
+ }
81
+
82
/**
- * Gets the callable that a model will be lifted to, if any.
83
+ * Gets the callable that a model will be lifted to.
84
*/
85
Callable lift() {
- exists(Method m | m = superImpl(this) and m.fromSource() | result = m)
86
+ result = this.getSuperImpl()
87
or
- not exists(superImpl(this)) and result = this
88
+ not exists(this.getSuperImpl()) and result = this
89
90
91
0 commit comments