[java-inspections] RedundantThrowsDeclarationInspection: cosmetic

GitOrigin-RevId: 27d94b7261d67a743b52d90a43692ca896406582
This commit is contained in:
Tagir Valeev
2024-06-17 13:22:21 +00:00
committed by intellij-monorepo-bot
parent 704b678b89
commit a550238d23
@@ -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