We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0665d30 commit b0cc6cfCopy full SHA for b0cc6cf
1 file changed
src/main/java/com/crossoverjie/actual/ReadFile.java
@@ -71,17 +71,14 @@ private static void sortAndFindKeyWords(File file) throws IOException {
71
}
72
73
74
- List<SortString> sorts = new ArrayList<>() ;
75
for (String key :countMap.keySet()){
76
SortString sort = new SortString() ;
77
sort.setKey(key);
78
sort.setCount(countMap.get(key));
79
- sorts.add(sort) ;
80
- }
81
82
- for (SortString sortString : sorts) {
83
- contentSet.add(sortString) ;
+ contentSet.add(sort) ;
84
+
85
86
87
private static class SortString implements Comparable<SortString>{
0 commit comments