mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java: use PsiNewExpression.isArrayCreation() (IJ-CR-124100)
GitOrigin-RevId: 09e635051dc0ee3b3f747bf0e00c2c8bdd437289
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6ef65a4cf9
commit
1ed298893c
+1
-2
@@ -1255,8 +1255,7 @@ public class HighlightVisitorImpl extends JavaElementVisitor implements Highligh
|
||||
if (!hasErrorResults() && parent instanceof PsiNewExpression newExpression) {
|
||||
add(GenericsHighlightUtil.checkDiamondTypeNotAllowed(newExpression));
|
||||
}
|
||||
if (!hasErrorResults() && (!(parent instanceof PsiNewExpression newExpression) ||
|
||||
newExpression.getArrayDimensions().length == 0 && newExpression.getArrayInitializer() == null)) {
|
||||
if (!hasErrorResults() && (!(parent instanceof PsiNewExpression newExpression) || !newExpression.isArrayCreation())) {
|
||||
add(GenericsHighlightUtil.checkParameterizedReferenceTypeArguments(resolved, ref, result.getSubstitutor(), myJavaSdkVersion));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user