Apache Lucene open-source search software
fix copy/paste bug in exception message, plus whitespace
Michael McCandless553a0920c3b3
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java b/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.javaindex b0426a24e6d..1bc2f40a9d1 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java@@ -135,9 +135,9 @@ 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.writeByte((byte) suffixBytes.length);out.writeBytes(suffixBytes.bytes, suffixBytes.offset, suffixBytes.length);}