File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
utbot-framework/src/main/kotlin/org/utbot/engine/util/statics/concrete Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -195,11 +195,17 @@ fun SootMethod.isTouchingExternalStatics(
195
195
val leftOp = it.leftOp
196
196
val rightOp = it.rightOp
197
197
198
- val assigningOuterStatics =
199
- isExternalStaticField(leftOp, currentClassImplementedInterfaces, currentClass)
200
-
201
- val assignmentFromOuterStatics =
202
- isExternalStaticField(rightOp, currentClassImplementedInterfaces, currentClass)
198
+ val assigningOuterStatics = isExternalStaticField(
199
+ leftOp,
200
+ currentClassImplementedInterfaces,
201
+ currentClass
202
+ )
203
+
204
+ val assignmentFromOuterStatics = isExternalStaticField(
205
+ rightOp,
206
+ currentClassImplementedInterfaces,
207
+ currentClass
208
+ )
203
209
204
210
assigningOuterStatics || assignmentFromOuterStatics
205
211
}
@@ -233,8 +239,7 @@ private fun isExternalStaticField(
233
239
234
240
val declaringClass = fieldRef.field.declaringClass
235
241
236
- val classInImplementedInterfaces =
237
- declaringClass.type in currentClassImplementedInterfaces
242
+ val classInImplementedInterfaces = declaringClass.type in currentClassImplementedInterfaces
238
243
239
- return ! ( classInImplementedInterfaces || declaringClass == currentClass)
244
+ return ! classInImplementedInterfaces && declaringClass != currentClass
240
245
}
You can’t perform that action at this time.
0 commit comments