From fb7e00099ee82b62a751bdbe40a7854508e5038e Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Mon, 27 Nov 2017 19:58:06 +0300 Subject: [PATCH] resolve yellow code --- .../ipp/exceptions/ObscureThrownExceptionsIntention.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ObscureThrownExceptionsIntention.java b/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ObscureThrownExceptionsIntention.java index 22e57fe90dee..9ecebcc00078 100644 --- a/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ObscureThrownExceptionsIntention.java +++ b/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ObscureThrownExceptionsIntention.java @@ -61,7 +61,7 @@ public class ObscureThrownExceptionsIntention extends MutablyNamedIntention { if (firstClass == null || types.length == 1) { return firstClass; } - Set sourceSet = new HashSet(); + Set sourceSet = new HashSet<>(); PsiClass aClass = firstClass; while (aClass != null) { sourceSet.add(aClass); @@ -70,7 +70,7 @@ public class ObscureThrownExceptionsIntention extends MutablyNamedIntention { if (sourceSet.isEmpty()) { return null; } - Set targetSet = new HashSet(); + Set targetSet = new HashSet<>(); final int max = types.length - 1; for (int i = 1; i < max; i++) { final PsiClassType classType = types[i]; @@ -82,7 +82,7 @@ public class ObscureThrownExceptionsIntention extends MutablyNamedIntention { aClass1 = aClass1.getSuperClass(); } sourceSet = targetSet; - targetSet = new HashSet(); + targetSet = new HashSet<>(); } PsiClass aClass1 = types[max].resolve(); while (aClass1 != null && !sourceSet.contains(aClass1)) {