mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-38861 ("Redundant type cast" inspection not triggered)
This commit is contained in:
@@ -227,7 +227,6 @@ public class RedundantCastUtil {
|
||||
addToResults(typeCast);
|
||||
}
|
||||
}
|
||||
qualifier = ((PsiTypeCastExpression)((PsiParenthesizedExpression)qualifier).getExpression()).getOperand();
|
||||
}
|
||||
catch (IncorrectOperationException e) {
|
||||
}
|
||||
@@ -332,6 +331,7 @@ public class RedundantCastUtil {
|
||||
}
|
||||
processAlreadyHasTypeCast(typeCast);
|
||||
}
|
||||
super.visitTypeCastExpression(typeCast);
|
||||
}
|
||||
|
||||
private void processAlreadyHasTypeCast(PsiTypeCastExpression typeCast){
|
||||
|
||||
Reference in New Issue
Block a user