Skip to content

Commit

Permalink
Fix suggestions for newXWithExpectedSize
Browse files Browse the repository at this point in the history
  • Loading branch information
snago authored and gaul committed Jan 8, 2025
1 parent e4e0e7a commit 4db7975
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modernizer-maven-plugin/src/main/resources/modernizer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ violation names use the same format that javap emits.
<violation>
<name>com/google/common/collect/Maps.newHashMapWithExpectedSize:(I)Ljava/util/HashMap;</name>
<version>19</version>
<comment>Prefer java.util.HashMap&lt;&gt;(int)</comment>
<comment>Prefer java.util.HashMap.&lt;&gt;newHashMap(int)</comment>
</violation>

<violation>
Expand All @@ -164,7 +164,7 @@ violation names use the same format that javap emits.
<violation>
<name>com/google/common/collect/Maps.newLinkedHashMapWithExpectedSize:(I)Ljava/util/LinkedHashMap;</name>
<version>19</version>
<comment>Prefer java.util.LinkedHashMap.newLinkedHashMap&lt;&gt;(int)</comment>
<comment>Prefer java.util.LinkedHashMap.&lt;&gt;newLinkedHashMap(int)</comment>
</violation>

<violation>
Expand Down Expand Up @@ -218,7 +218,7 @@ violation names use the same format that javap emits.
<violation>
<name>com/google/common/collect/Sets.newHashSetWithExpectedSize:(I)Ljava/util/HashSet;</name>
<version>19</version>
<comment>Prefer java.util.HashSet&lt;&gt;(int)</comment>
<comment>Prefer java.util.HashSet.&lt;&gt;newHashSet(int)</comment>
</violation>

<violation>
Expand All @@ -230,7 +230,7 @@ violation names use the same format that javap emits.
<violation>
<name>com/google/common/collect/Sets.newLinkedHashSetWithExpectedSize:(I)Ljava/util/LinkedHashSet;</name>
<version>19</version>
<comment>Prefer java.util.LinkedHashSet.newLinkedHashSet&lt;&gt;(int)</comment>
<comment>Prefer java.util.LinkedHashSet.&lt;&gt;newLinkedHashSet(int)</comment>
</violation>

<violation>
Expand Down

0 comments on commit 4db7975

Please sign in to comment.