Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep committed Oct 23, 2020
1 parent be82be3 commit 2cb6398
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static boolean checkIfBodyContainsWord(Pattern pattern, String target) {

public static Set<String> checkRepeatedWords(String target) {
String[] words = target.split("\\W");
return new HashSet<String>(Arrays.asList(words));
return new HashSet<>(Arrays.asList(words));
}

}

0 comments on commit 2cb6398

Please sign in to comment.