Skip to content

Commit

Permalink
Dont set init capacity of HashMap to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
daniilzimin4 authored Nov 25, 2024
1 parent 4750b55 commit bd164f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/takes/rs/RsWithStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private static String best(final int code) {
* @checkstyle ExecutableStatementCountCheck (100 lines)
*/
private static Map<Integer, String> make() {
final Map<Integer, String> map = new HashMap<>(0);
final Map<Integer, String> map = new HashMap<>();
map.put(HttpURLConnection.HTTP_OK, "OK");
map.put(HttpURLConnection.HTTP_CREATED, "Created");
map.put(HttpURLConnection.HTTP_ACCEPTED, "Accepted");
Expand Down

0 comments on commit bd164f5

Please sign in to comment.