You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2020/04/24 14:50:12 UTC

[GitHub] [accumulo] jmark99 commented on a change in pull request #1595: Update manual array to collections copy method.

jmark99 commented on a change in pull request #1595:
URL: https://github.com/apache/accumulo/pull/1595#discussion_r414636098



##########
File path: core/src/main/java/org/apache/accumulo/core/data/Key.java
##########
@@ -1159,7 +1159,7 @@ public int getSize() {
   }
 
   private static boolean isEqual(byte[] a1, byte[] a2) {
-    if (a1 == a2)
+    if (Arrays.equals(a1, a2))

Review comment:
       Thanks for the catch Ed! I will revert that change. It didn't really go with the rest of the changes anyway.
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org