Skip to content

Commit

Permalink
Merge pull request #46 from yg3630536/feature/fix-spotbug
Browse files Browse the repository at this point in the history
Fix the issues generated by spotbug and improve test cases to ensure that they pass
  • Loading branch information
chenhaozx committed Feb 25, 2019
2 parents f23ed30 + ba34550 commit 33da05c
Show file tree
Hide file tree
Showing 46 changed files with 836 additions and 1,609 deletions.
12 changes: 12 additions & 0 deletions config/spotbugs/spotbugs_filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,17 @@
<Method name="checkAuthorityIssuerArgsValidity" />
<Bug pattern="REC_CATCH_EXCEPTION" />
</Match>

<!--
Filtering spotbug problems caused by mock and known empty problems.
1. UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS
2. ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD
3. SIC_INNER_SHOULD_BE_STATIC_ANON
4. NP_LOAD_OF_KNOWN_NULL_VALUE
-->
<Match>
<Package name="~com\.webank\.weid\.full\.*.*" />
<Bug pattern="UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS, ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD, SIC_INNER_SHOULD_BE_STATIC_ANON, NP_LOAD_OF_KNOWN_NULL_VALUE" />
</Match>

</FindBugsFilter>
248 changes: 0 additions & 248 deletions src/demo/com/webank/weid/demo/DemoService.java

This file was deleted.

118 changes: 0 additions & 118 deletions src/demo/com/webank/weid/demo/DemoTest.java

This file was deleted.

0 comments on commit 33da05c

Please sign in to comment.