Skip to content
Permalink
Browse files
8275767: JDK source code contains redundant boolean operations in jdk…
….charsets

Reviewed-by: lancea, rriggs, iris
  • Loading branch information
naotoj committed Oct 26, 2021
1 parent 4961373 commit 63e0f344e9a2da135c76caff11e437dfc40408a6
@@ -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);
@@ -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);

1 comment on commit 63e0f34

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 63e0f34 Oct 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.