EA-96836 - AIOOBE: Transformation.getArgument

This commit is contained in:
alexey.afanasiev
2017-05-15 17:01:34 +03:00
parent 7cf95215e6
commit 0fcbe62730
@@ -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);
}
}