We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cf4f11 commit 8c75343Copy full SHA for 8c75343
src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java
@@ -140,11 +140,11 @@ private int getEncodedCharLength(final int current) throws CharacterCodingExcept
140
if (Character.isHighSurrogate(cChar)) {
141
// Move on to the next char (low surrogate)
142
return 0;
143
- } else if (Character.isSurrogatePair(lChar, cChar)) {
+ }
144
+ if (Character.isSurrogatePair(lChar, cChar)) {
145
return encoder.encode(CharBuffer.wrap(new char[] { lChar, cChar })).limit();
- } else {
146
- throw new CharacterCodingException();
147
}
+ throw new CharacterCodingException();
148
149
150
/**
0 commit comments