Xiaoven / codegex

A light-weight tools like spotbugs
GNU Lesser General Public License v2.1
1 stars 0 forks source link

False positives for UI_INHERITANCE_UNSAFE_GETRESOURCE #97

Closed zhouyinn closed 3 years ago

zhouyinn commented 3 years ago
// https://github.com/apache/lucene-solr/blob/0a22341ee21ea24fed0d38a58136314472a1c587/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/SpellCheckerTest.java#L42
InputStream affixStream =
        Objects.requireNonNull(getClass().getResourceAsStream(name + ".aff"), name);
// https://github.com/apache/lucene-solr/blob/0a22341ee21ea24fed0d38a58136314472a1c587/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/SpellCheckerTest.java#L44
InputStream dictStream =
        Objects.requireNonNull(getClass().getResourceAsStream(name + ".dic"), name);
Xiaoven commented 3 years ago

这个其实已经有 online search 和 local search 来解决这个问题了(目前是把priority设为 ingore),只是我这次实验report的时候把它也显示出来。新的代码里,经过 online search 后还是ignore的会直接return,不生成 buginstance object