Skip to content

Commit 19ffdb2

Browse files
committed
Ignore "weak cryptography" warning
1 parent 63be99a commit 19ffdb2

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

spotbugs-exclude.xml

+4
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
66

7+
<Match>
8+
<Bug pattern="PREDICTABLE_RANDOM" />
9+
</Match>
10+
711
</FindBugsFilter>

src/main/java/eu/happycoders/sort/method/quicksort/PivotHelper.java

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import eu.happycoders.sort.utils.ArrayUtils;
44
import java.util.concurrent.ThreadLocalRandom;
55

6+
// Ignore "weak cryptography" warning - we're just sorting random numbers :-)
7+
@SuppressWarnings("java:S2245")
68
public class PivotHelper {
79

810
static void findPivotAndMoveRight(

src/main/java/eu/happycoders/sort/pivot/PivotComparator.java

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
*
1313
* @author <a href="[email protected]">Sven Woltmann</a>
1414
*/
15+
// Ignore "weak cryptography" warning - we're just sorting random numbers :-)
16+
@SuppressWarnings("java:S2245")
1517
public class PivotComparator {
1618

1719
private static final int ITERATIONS = 500_000;

src/main/java/eu/happycoders/sort/utils/ArrayUtils.java

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*
1010
* @author <a href="[email protected]">Sven Woltmann</a>
1111
*/
12+
// Ignore "weak cryptography" warning - we're just sorting random numbers :-)
13+
@SuppressWarnings("java:S2245")
1214
public class ArrayUtils {
1315

1416
/**

0 commit comments

Comments
 (0)