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)) {