Skip to content

Commit 4db7975

Browse files
snagogaul
authored andcommitted
Fix suggestions for newXWithExpectedSize
1 parent e4e0e7a commit 4db7975

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modernizer-maven-plugin/src/main/resources/modernizer.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ violation names use the same format that javap emits.
146146
<violation>
147147
<name>com/google/common/collect/Maps.newHashMapWithExpectedSize:(I)Ljava/util/HashMap;</name>
148148
<version>19</version>
149-
<comment>Prefer java.util.HashMap&lt;&gt;(int)</comment>
149+
<comment>Prefer java.util.HashMap.&lt;&gt;newHashMap(int)</comment>
150150
</violation>
151151

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

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

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

236236
<violation>

0 commit comments

Comments
 (0)