lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1039909 - in /lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory: MemoryIndexTest.java PatternAnalyzerTest.java
Date Sun, 28 Nov 2010 17:07:17 GMT
Author: uschindler
Date: Sun Nov 28 17:07:17 2010
New Revision: 1039909

URL: http://svn.apache.org/viewvc?rev=1039909&view=rev
Log:
fix StringBuilder not in java 1.4

Modified:
    lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java
    lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/PatternAnalyzerTest.java

Modified: lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java?rev=1039909&r1=1039908&r2=1039909&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java
(original)
+++ lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java
Sun Nov 28 17:07:17 2010
@@ -90,8 +90,8 @@ public class MemoryIndexTest extends Bas
    * and run all the queries against it.
    */
   public void assertAgainstRAMDirectory() throws Exception {
-    StringBuilder fooField = new StringBuilder();
-    StringBuilder termField = new StringBuilder();
+    StringBuffer fooField = new StringBuffer();
+    StringBuffer termField = new StringBuffer();
  
     // add up to 250 terms to field "foo"
     for (int i = 0; i < random.nextInt(250); i++) {

Modified: lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/PatternAnalyzerTest.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/PatternAnalyzerTest.java?rev=1039909&r1=1039908&r2=1039909&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/PatternAnalyzerTest.java
(original)
+++ lucene/java/branches/lucene_2_9/contrib/memory/src/test/org/apache/lucene/index/memory/PatternAnalyzerTest.java
Sun Nov 28 17:07:17 2010
@@ -87,7 +87,7 @@ public class PatternAnalyzerTest extends
    * Test PatternAnalyzer against a large document.
    */
   public void testHugeDocument() throws IOException {
-    StringBuilder document = new StringBuilder();
+    StringBuffer document = new StringBuffer();
     // 5000 a's
     char largeWord[] = new char[5000];
     Arrays.fill(largeWord, 'a');



Mime
View raw message