From bd164f5615e1ab12339346269cd7117bc68689c7 Mon Sep 17 00:00:00 2001 From: Daniil Zimin <53049313+daniilzimin4@users.noreply.github.com> Date: Mon, 25 Nov 2024 23:59:41 +0300 Subject: [PATCH] Dont set init capacity of HashMap to 0 --- src/main/java/org/takes/rs/RsWithStatus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/takes/rs/RsWithStatus.java b/src/main/java/org/takes/rs/RsWithStatus.java index 83be82cf5..6b1467dda 100644 --- a/src/main/java/org/takes/rs/RsWithStatus.java +++ b/src/main/java/org/takes/rs/RsWithStatus.java @@ -142,7 +142,7 @@ private static String best(final int code) { * @checkstyle ExecutableStatementCountCheck (100 lines) */ private static Map make() { - final Map map = new HashMap<>(0); + final Map map = new HashMap<>(); map.put(HttpURLConnection.HTTP_OK, "OK"); map.put(HttpURLConnection.HTTP_CREATED, "Created"); map.put(HttpURLConnection.HTTP_ACCEPTED, "Accepted");