8275767: JDK source code contains redundant boolean operations in jdk.charsets
Reviewed-by: lancea, rriggs, iris
This commit is contained in:
parent
4961373a67
commit
63e0f344e9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user