Make searchTrie static
app/src/main/java/eu/lepiller/nani/dictionary/FileDictionary.java
| 249 | 249 | return results; | |
| 250 | 250 | } | |
| 251 | 251 | ||
| 252 | - | <T extends Object> T searchTrie(RandomAccessFile file, long triePos, byte[] txt, TrieValsDecoder<T> decoder) throws IOException { | |
| 252 | + | static<T> T searchTrie(RandomAccessFile file, long triePos, byte[] txt, TrieValsDecoder<T> decoder) throws IOException { | |
| 253 | 253 | file.seek(triePos); | |
| 254 | 254 | if(txt.length == 0) { | |
| 255 | 255 | return decoder.decodeVals(file, triePos); |