-
Enhancement
-
Resolution: Fixed
-
P4
-
17
-
b14
SonarCloud reports:
Use "Arrays.equals(array1, array2)" or the "==" operator instead of using the "Object.equals(Object obj)" method.
} else if (!src.isDirect() && !dst.isDirect()) {
if (!src.isReadOnly()) {
// If using the heap, check underlying byte[] address.
if (!src.array().equals(dst.array()) ) { // <--- here
Use "Arrays.equals(array1, array2)" or the "==" operator instead of using the "Object.equals(Object obj)" method.
} else if (!src.isDirect() && !dst.isDirect()) {
if (!src.isReadOnly()) {
// If using the heap, check underlying byte[] address.
if (!src.array().equals(dst.array()) ) { // <--- here
- relates to
-
JDK-8253821 Improve ByteBuffer performance with GCM
- Resolved
-
JDK-8269218 GaloisCounterMode.overlapDetection misses the JDK-8263436 fix again
- Resolved