From a550238d239454b09847c25ea282e486dd1d1d37 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Mon, 17 Jun 2024 12:07:18 +0200 Subject: [PATCH] [java-inspections] RedundantThrowsDeclarationInspection: cosmetic GitOrigin-RevId: 27d94b7261d67a743b52d90a43692ca896406582 --- .../unneededThrows/RedundantThrowsDeclarationInspection.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/java-analysis-impl/src/com/intellij/codeInspection/unneededThrows/RedundantThrowsDeclarationInspection.java b/java/java-analysis-impl/src/com/intellij/codeInspection/unneededThrows/RedundantThrowsDeclarationInspection.java index 4e450c7c633c..a3b16668ede5 100644 --- a/java/java-analysis-impl/src/com/intellij/codeInspection/unneededThrows/RedundantThrowsDeclarationInspection.java +++ b/java/java-analysis-impl/src/com/intellij/codeInspection/unneededThrows/RedundantThrowsDeclarationInspection.java @@ -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