@@ -176,7 +176,7 @@ public final class ModernizerMojo extends AbstractMojo {
176176 * java/lang/String.getBytes:(Ljava/lang/String;)[B.
177177 */
178178 @ Parameter
179- protected Set <String > exclusions = new HashSet <String >();
179+ protected Set <String > exclusions = new HashSet <>();
180180
181181 /**
182182 * Violation patterns to disable. Each exclusion should be a
@@ -185,15 +185,15 @@ public final class ModernizerMojo extends AbstractMojo {
185185 * java/lang/.*
186186 */
187187 @ Parameter
188- protected Set <String > exclusionPatterns = new HashSet <String >();
188+ protected Set <String > exclusionPatterns = new HashSet <>();
189189
190190 /**
191191 * Package prefixes to ignore, specified using <ignorePackage> child
192192 * elements. Specifying foo.bar subsequently ignores foo.bar.*,
193193 * foo.bar.baz.* and so on.
194194 */
195195 @ Parameter
196- protected Set <String > ignorePackages = new HashSet <String >();
196+ protected Set <String > ignorePackages = new HashSet <>();
197197
198198 /**
199199 * Fully qualified class names (incl. package) to ignore by regular
@@ -203,7 +203,7 @@ public final class ModernizerMojo extends AbstractMojo {
203203 * ending in Immutable in all packages.
204204 */
205205 @ Parameter
206- protected Set <String > ignoreClassNamePatterns = new HashSet <String >();
206+ protected Set <String > ignoreClassNamePatterns = new HashSet <>();
207207
208208 private Modernizer modernizer ;
209209
@@ -234,13 +234,13 @@ public void execute() throws MojoExecutionException {
234234 allViolations .putAll (parseViolations (violationsFilePath ));
235235 }
236236
237- Set <String > allExclusions = new HashSet <String >();
237+ Set <String > allExclusions = new HashSet <>();
238238 allExclusions .addAll (exclusions );
239239 if (exclusionsFile != null ) {
240240 allExclusions .addAll (readExclusionsFile (exclusionsFile ));
241241 }
242242
243- Set <Pattern > allExclusionPatterns = new HashSet <Pattern >();
243+ Set <Pattern > allExclusionPatterns = new HashSet <>();
244244 for (String pattern : exclusionPatterns ) {
245245 try {
246246 allExclusionPatterns .add (Pattern .compile (pattern ));
@@ -250,7 +250,7 @@ public void execute() throws MojoExecutionException {
250250 }
251251 }
252252
253- Set <Pattern > allIgnoreFullClassNamePatterns = new HashSet <Pattern >();
253+ Set <Pattern > allIgnoreFullClassNamePatterns = new HashSet <>();
254254 for (String pattern : ignoreClassNamePatterns ) {
255255 try {
256256 allIgnoreFullClassNamePatterns .add (Pattern .compile (pattern ));
@@ -260,7 +260,7 @@ public void execute() throws MojoExecutionException {
260260 }
261261 }
262262
263- Set <String > ignoreClassNames = new HashSet <String >();
263+ Set <String > ignoreClassNames = new HashSet <>();
264264 try {
265265 ignoreClassNames .addAll (
266266 SuppressModernizerAnnotationDetector .detect (
0 commit comments