mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Simplification
This commit is contained in:
@@ -388,14 +388,12 @@ public class MessageClassifier {
|
||||
}
|
||||
|
||||
private static int getWordIndex(String word) {
|
||||
synchronized (wordIndex) {
|
||||
Integer index = wordIndex.get(word);
|
||||
if (index == null) {
|
||||
index = wordIndex.size();
|
||||
wordIndex.put(word, index);
|
||||
}
|
||||
return index;
|
||||
Integer index = wordIndex.get(word);
|
||||
if (index == null) {
|
||||
index = wordIndex.size();
|
||||
wordIndex.put(word, index);
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
private static String getWord(Integer index) {
|
||||
|
||||
Reference in New Issue
Block a user