Sonar fix: use equals to compare Integers
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/RandomKey.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/RandomKey.java
index 1b80280..003c476 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/RandomKey.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/RandomKey.java
@@ -163,7 +163,7 @@
         List<Integer> anotherPerm = anotherRk.baseSeqPermutation;
 
         for (int i=0; i<getLength(); i++) {
-            if (thisPerm.get(i) != anotherPerm.get(i)) {
+            if (!thisPerm.get(i).equals(anotherPerm.get(i))) {
                 return false;
             }
         }