You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mk...@apache.org on 2015/12/08 08:33:15 UTC

svn commit: r1718517 - /lucene/dev/branches/branch_5x/lucene/join/src/test/org/apache/lucene/search/join/TestJoinUtil.java

Author: mkhl
Date: Tue Dec  8 07:33:15 2015
New Revision: 1718517

URL: http://svn.apache.org/viewvc?rev=1718517&view=rev
Log:
LUCENE-5868: removing Java8's parseUnsignedInt

Modified:
    lucene/dev/branches/branch_5x/lucene/join/src/test/org/apache/lucene/search/join/TestJoinUtil.java

Modified: lucene/dev/branches/branch_5x/lucene/join/src/test/org/apache/lucene/search/join/TestJoinUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/join/src/test/org/apache/lucene/search/join/TestJoinUtil.java?rev=1718517&r1=1718516&r2=1718517&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/join/src/test/org/apache/lucene/search/join/TestJoinUtil.java (original)
+++ lucene/dev/branches/branch_5x/lucene/join/src/test/org/apache/lucene/search/join/TestJoinUtil.java Tue Dec  8 07:33:15 2015
@@ -951,7 +951,7 @@ public class TestJoinUtil extends Lucene
         // the trick is to generate values which will be ordered similarly for string, ints&longs, positive nums makes it easier 
         final int nextInt = random.nextInt(Integer.MAX_VALUE);
         uniqueRandomValue = String.format(Locale.ROOT, "%08x", nextInt);
-        assert nextInt == Integer.parseUnsignedInt(uniqueRandomValue,16);
+        assert nextInt == Integer.parseInt(uniqueRandomValue,16);
       } while ("".equals(uniqueRandomValue) || trackSet.contains(uniqueRandomValue));
      
       // Generate unique values and empty strings aren't allowed.
@@ -1203,7 +1203,7 @@ public class TestJoinUtil extends Lucene
       boolean multipleValuesPerDocument, boolean globalOrdinalJoin) {
     document.add(newTextField(random, fieldName, linkValue, Field.Store.NO));
 
-    final int linkInt = Integer.parseUnsignedInt(linkValue,16);
+    final int linkInt = Integer.parseInt(linkValue,16);
     document.add(new IntField(fieldName+NumericType.INT, linkInt, Field.Store.NO));
 
     final long linkLong = linkInt<<32 | linkInt;