You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2015/07/16 13:29:55 UTC
svn commit: r1691367 -
/lucene/dev/branches/solr7787/solr/core/src/test/org/apache/solr/util/hll/BitVectorTest.java
Author: dweiss
Date: Thu Jul 16 11:29:55 2015
New Revision: 1691367
URL: http://svn.apache.org/r1691367
Log:
Locale-sensitive format is banned.
Modified:
lucene/dev/branches/solr7787/solr/core/src/test/org/apache/solr/util/hll/BitVectorTest.java
Modified: lucene/dev/branches/solr7787/solr/core/src/test/org/apache/solr/util/hll/BitVectorTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/solr7787/solr/core/src/test/org/apache/solr/util/hll/BitVectorTest.java?rev=1691367&r1=1691366&r2=1691367&view=diff
==============================================================================
--- lucene/dev/branches/solr7787/solr/core/src/test/org/apache/solr/util/hll/BitVectorTest.java (original)
+++ lucene/dev/branches/solr7787/solr/core/src/test/org/apache/solr/util/hll/BitVectorTest.java Thu Jul 16 11:29:55 2015
@@ -17,6 +17,8 @@
package org.apache.solr.util.hll;
+import java.util.Locale;
+
import org.apache.lucene.util.LuceneTestCase;
import org.junit.Test;
@@ -113,11 +115,11 @@ public class BitVectorTest extends Lucen
final LongIterator iter = vector.registerIterator();
for(int i=0; i<count; i++) {
- assertTrue(String.format("expected more elements: width=%s, count=%s", width, count), iter.hasNext());
+ assertTrue(String.format(Locale.ROOT, "expected more elements: width=%s, count=%s", width, count), iter.hasNext());
// TODO: fill with a sentinel value
assertEquals(iter.next(), 0);
}
- assertFalse(String.format("expected no more elements: width=%s, count=%s", width, count), iter.hasNext());
+ assertFalse(String.format(Locale.ROOT, "expected no more elements: width=%s, count=%s", width, count), iter.hasNext());
}
// ========================================================================