From d687ef4cd0f803002d6468a70d395c8b8a82c9a4 Mon Sep 17 00:00:00 2001 From: Robin Karlsson Date: Wed, 8 Jan 2025 12:43:43 +0100 Subject: [PATCH] Fix suggestions for newXWithExpectedSize --- modernizer-maven-plugin/src/main/resources/modernizer.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modernizer-maven-plugin/src/main/resources/modernizer.xml b/modernizer-maven-plugin/src/main/resources/modernizer.xml index a7a9334..d349bfb 100644 --- a/modernizer-maven-plugin/src/main/resources/modernizer.xml +++ b/modernizer-maven-plugin/src/main/resources/modernizer.xml @@ -146,7 +146,7 @@ violation names use the same format that javap emits. com/google/common/collect/Maps.newHashMapWithExpectedSize:(I)Ljava/util/HashMap; 19 - Prefer java.util.HashMap<>(int) + Prefer java.util.HashMap.<>newHashMap(int) @@ -164,7 +164,7 @@ violation names use the same format that javap emits. com/google/common/collect/Maps.newLinkedHashMapWithExpectedSize:(I)Ljava/util/LinkedHashMap; 19 - Prefer java.util.LinkedHashMap.newLinkedHashMap<>(int) + Prefer java.util.LinkedHashMap.<>newLinkedHashMap(int) @@ -218,7 +218,7 @@ violation names use the same format that javap emits. com/google/common/collect/Sets.newHashSetWithExpectedSize:(I)Ljava/util/HashSet; 19 - Prefer java.util.HashSet<>(int) + Prefer java.util.HashSet.<>newHashSet(int) @@ -230,7 +230,7 @@ violation names use the same format that javap emits. com/google/common/collect/Sets.newLinkedHashSetWithExpectedSize:(I)Ljava/util/LinkedHashSet; 19 - Prefer java.util.LinkedHashSet.newLinkedHashSet<>(int) + Prefer java.util.LinkedHashSet.<>newLinkedHashSet(int)