Skip to content

Commit a169676

Browse files
authored
Merge pull request exercism#740 from matthewstyler/master
Fixes exercism#716 remove redundant type params
2 parents 279bf9f + 2d2b4f8 commit a169676

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎exercises/word-count/src/example/java/WordCount.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
public class WordCount {
77

88
public Map<String, Integer> phrase( String input ) {
9-
Map<String, Integer> countMap = new HashMap<String, Integer>();
9+
Map<String, Integer> countMap = new HashMap<>();
1010
input = input.trim().toLowerCase().replaceAll("[\\W]", " ");
1111
final String[] tokenizedInput = input.split("\\s+");
1212
for( String aWord : tokenizedInput ) {

‎exercises/word-count/src/test/java/WordCountTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class WordCountTest {
1818
@Before
1919
public void setup() {
2020
wordCount = new WordCount();
21-
expectedWordCount = new HashMap<String, Integer>();
21+
expectedWordCount = new HashMap<>();
2222
}
2323

2424

0 commit comments

Comments
 (0)