Mercurial > hg > truffle
diff graal/findbugsExcludeFilter.xml @ 14546:942c4daa9db9
added findbugs command to mx
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sat, 15 Mar 2014 01:42:27 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graal/findbugsExcludeFilter.xml Sat Mar 15 01:42:27 2014 +0100 @@ -0,0 +1,41 @@ +<FindBugsFilter> + + <Match> + <Class name="com.oracle.graal.hotspot.CompilationTask" /> + <Method name="run" /> + <Bug pattern="NN_NAKED_NOTIFY" /> + </Match> + + <!-- justification = "concurrent abstraction calls are in synchronized block" --> + <Match> + <Class name="com.oracle.graal.hotspot.debug.BenchmarkCounters" /> + <Method name="getIndex" /> + <Bug pattern="AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION" /> + </Match> + + <!-- justification = "counters are only used for statistics" --> + <Match> + <Class name="com.oracle.graal.hotspot.meta.HotSpotGraphCache" /> + <Or> + <Method name="get" /> + <Method name="put" /> + <Method name="removeGraphs" /> + </Or> + <Bug pattern="VO_VOLATILE_INCREMENT" /> + </Match> + + <!-- justification = "reference equality on the receiver is what we want" --> + <Match> + <Class name="com.oracle.graal.replacements.StringSubstitutions" /> + <Method name="equals" /> + <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ" /> + </Match> + + <!-- justification = "reference equality to test whether string is interned" --> + <Match> + <Class name="com.oracle.graal.hotspot.phases.AheadOfTimeVerificationPhase" /> + <Method name="isInternedString" /> + <Bug pattern="ES_COMPARING_STRINGS_WITH_EQ" /> + </Match> + +</FindBugsFilter>