mirror of https://github.com/apache/lucene.git
fix copy/paste bug in exception message, plus whitespace
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1712789 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9343bc9cab
commit
553a0920c3
|
@ -135,7 +135,7 @@ public final class CodecUtil {
|
|||
out.writeBytes(id, 0, id.length);
|
||||
BytesRef suffixBytes = new BytesRef(suffix);
|
||||
if (suffixBytes.length != suffix.length() || suffixBytes.length >= 256) {
|
||||
throw new IllegalArgumentException("codec must be simple ASCII, less than 256 characters in length [got " + suffix + "]");
|
||||
throw new IllegalArgumentException("suffix must be simple ASCII, less than 256 characters in length [got " + suffix + "]");
|
||||
}
|
||||
out.writeByte((byte) suffixBytes.length);
|
||||
out.writeBytes(suffixBytes.bytes, suffixBytes.offset, suffixBytes.length);
|
||||
|
|
Loading…
Reference in New Issue