You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2015/11/05 15:56:25 UTC

svn commit: r1712789 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java

Author: mikemccand
Date: Thu Nov  5 14:56:23 2015
New Revision: 1712789

URL: http://svn.apache.org/viewvc?rev=1712789&view=rev
Log:
fix copy/paste bug in exception message, plus whitespace

Modified:
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java?rev=1712789&r1=1712788&r2=1712789&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java Thu Nov  5 14:56:23 2015
@@ -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);
   }