From 2cb6398e481083a9c7a1f5d233a92fdafe7dd8bb Mon Sep 17 00:00:00 2001 From: double-beep Date: Fri, 23 Oct 2020 14:00:30 +0000 Subject: [PATCH] Simplification --- .../java/bugs/stackoverflow/belisarius/utils/CheckUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/bugs/stackoverflow/belisarius/utils/CheckUtils.java b/src/main/java/bugs/stackoverflow/belisarius/utils/CheckUtils.java index d8b8069..c2054ce 100644 --- a/src/main/java/bugs/stackoverflow/belisarius/utils/CheckUtils.java +++ b/src/main/java/bugs/stackoverflow/belisarius/utils/CheckUtils.java @@ -126,7 +126,7 @@ public static boolean checkIfBodyContainsWord(Pattern pattern, String target) { public static Set checkRepeatedWords(String target) { String[] words = target.split("\\W"); - return new HashSet(Arrays.asList(words)); + return new HashSet<>(Arrays.asList(words)); } }