Skip to content

Commit

Permalink
Merge branch 'master' into 3.0.X
Browse files Browse the repository at this point in the history
  • Loading branch information
leerho committed Jul 29, 2024
2 parents 505071a + 8f0dc74 commit 06e91ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public static long[] hash(
k1 ^= (unsafe.getByte(uObj, cumOff) & 0xFFL);
break;
}
//default: break; //can't happen
default: break; //can't happen
}

h1 ^= mixK1(k1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* @author Praveenkumar Venkatesan
*/
@SuppressWarnings("restriction")
class AllocateDirectWritableMap {
final class AllocateDirectWritableMap {
static final Logger LOG = Logger.getLogger(AllocateDirectWritableMap.class.getCanonicalName());

private static final int MAP_RO = 0;
Expand Down
71 changes: 4 additions & 67 deletions tools/FindBugsExcludeFilter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,76 +21,13 @@ under the License.

<FindBugsFilter> <!-- memory -->

<!-- Too many false positives to be useful. I could not make it happy :( -->
<!-- Ignore all test code -->
<Match>
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
</Match>

<Match> <!-- Exclude for test classes; too many False Positives. -->
<Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL" />
<Class name="~.*\.*Test" />
</Match>

<Match> <!-- Exclude for test classes; too many False Positives. -->
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
<Class name="~.*\.*Test" />

<Match> <!-- harmless, not going to fix right now -->
<Bug pattern="INT_VACUOUS_BIT_OPERATION" />
</Match>

</FindBugsFilter>



<!-- Examples: -->

<!-- Exclude java.* classes -->
<!--
<Match>
<Package name="java\.*" />
</Match>
-->

<!-- Exclude test classes -->
<!--
<Match>
<Class name="~.*\.*Test" />
</Match>
-->

<!--
<Match>
<Class name="com.foobar.ClassNotToBeAnalyzed" />
</Match>
-->
<!--
<Match>
<Class name="com.foobar.ClassWithSomeBugsMatched" />
<Bug code="DE,UrF,SIC" />
</Match>
-->
<!-- Match all XYZ violations. -->
<!--
<Match>
<Bug code="XYZ" />
</Match>
-->
<!-- Match all doublecheck violations in these methods of "AnotherClass". -->
<!--
<Match>
<Class name="com.foobar.AnotherClass" />
<Or>
<Method name="nonOverloadedMethod" />
<Method name="frob" params="int,java.lang.String" returns="void" />
<Method name="blat" params="" returns="boolean" />
</Or>
<Bug code="DC" />
</Match>
-->
<!-- A method with a dead local store false positive (medium priority). -->
<!--
<Match>
<Class name="com.foobar.MyClass" />
<Method name="someMethod" />
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
<Priority value="2" />
</Match>
-->

0 comments on commit 06e91ba

Please sign in to comment.