8275767: JDK source code contains redundant boolean operations in jdk.charsets

Reviewed-by: lancea, rriggs, iris
This commit is contained in:
Naoto Sato 2021-10-26 12:32:49 +00:00
parent 4961373a67
commit 63e0f344e9
2 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@ public class IBM964
}
protected CoderResult decodeLoop(ByteBuffer src, CharBuffer dst) {
if (true && src.hasArray() && dst.hasArray())
if (src.hasArray() && dst.hasArray())
return decodeArrayLoop(src, dst);
else
return decodeBufferLoop(src, dst);

View File

@ -260,7 +260,7 @@ public abstract class SimpleEUCEncoder
}
protected CoderResult encodeLoop(CharBuffer src, ByteBuffer dst) {
if (true && src.hasArray() && dst.hasArray())
if (src.hasArray() && dst.hasArray())
return encodeArrayLoop(src, dst);
else
return encodeBufferLoop(src, dst);