@@ -9,7 +9,6 @@ import kotlinx.collections.immutable.toPersistentSet
9
9
import org.utbot.common.WorkaroundReason.HACK
10
10
import org.utbot.framework.UtSettings.ignoreStaticsFromTrustedLibraries
11
11
import org.utbot.common.WorkaroundReason.IGNORE_STATICS_FROM_TRUSTED_LIBRARIES
12
- import org.utbot.common.WorkaroundReason.REMOVE_ANONYMOUS_CLASSES
13
12
import org.utbot.common.unreachableBranch
14
13
import org.utbot.common.withAccessibility
15
14
import org.utbot.common.workaround
@@ -3380,25 +3379,6 @@ class Traverser(
3380
3379
val returnValue = (symbolicResult as ? SymbolicSuccess )?.value as ? ObjectValue
3381
3380
if (returnValue != null ) {
3382
3381
queuedSymbolicStateUpdates + = constructConstraintForType(returnValue, returnValue.possibleConcreteTypes).asSoftConstraint()
3383
-
3384
- // TODO: do not remove anonymous classes for return value when it is the only option
3385
- // workaround(REMOVE_ANONYMOUS_CLASSES) {
3386
- // val sootClass = returnValue.type.sootClass
3387
- // val isInNestedMethod = environment.state.isInNestedMethod()
3388
- //
3389
- // if (!isInNestedMethod && sootClass.isArtificialEntity) {
3390
- // return
3391
- // }
3392
- //
3393
- // val onlyAnonymousTypesAndLambdasAvailable = returnValue.typeStorage.possibleConcreteTypes.all {
3394
- // // only ref types can be anonymous or lambdas
3395
- // val type = (it as? RefType)?.sootClass ?: return@all false
3396
- // type.isLambda || type.isAnonymous
3397
- // }
3398
- // if (!isInNestedMethod && sootClass.isAnonymous && !onlyAnonymousTypesAndLambdasAvailable) {
3399
- // return
3400
- // }
3401
- // }
3402
3382
}
3403
3383
3404
3384
// fill arrays with default 0/null and other stuff
0 commit comments