mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspections] RedundantThrowsDeclarationInspection: cosmetic
GitOrigin-RevId: 27d94b7261d67a743b52d90a43692ca896406582
This commit is contained in:
committed by
intellij-monorepo-bot
parent
704b678b89
commit
a550238d23
+1
-2
@@ -588,8 +588,7 @@ public final class RedundantThrowsDeclarationInspection extends GlobalJavaBatchI
|
||||
if (throwsClass == null) return false;
|
||||
final PsiClassType type = PsiTypesUtil.getClassType(throwsClass);
|
||||
|
||||
return redundantThrows.stream()
|
||||
.anyMatch(e -> e.isAssignableFrom(type));
|
||||
return ContainerUtil.exists(redundantThrows, e -> e.isAssignableFrom(type));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user