mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-96836 - AIOOBE: Transformation.getArgument
This commit is contained in:
+2
-2
@@ -45,8 +45,8 @@ public class AsTypeTransformation extends SimpleBinaryTransformation {
|
||||
|
||||
@Override
|
||||
public boolean couldApplyInternal(@NotNull GrMethodCall methodCall, @NotNull ChangeToOperatorInspection.Options options) {
|
||||
if (!super.couldApplyInternal(methodCall, options)) return false;
|
||||
GrExpression rhs = getRhs(methodCall);
|
||||
return super.couldApplyInternal(methodCall, options)
|
||||
&& ResolveUtil.resolvesToClass(rhs);
|
||||
return ResolveUtil.resolvesToClass(rhs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user