You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2016/11/03 15:08:55 UTC
svn commit: r1767902 -
/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/List_of_ints.java
Author: schor
Date: Thu Nov 3 15:08:55 2016
New Revision: 1767902
URL: http://svn.apache.org/viewvc?rev=1767902&view=rev
Log:
no Jira, share constants more widely
Modified:
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/List_of_ints.java
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/List_of_ints.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/List_of_ints.java?rev=1767902&r1=1767901&r2=1767902&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/List_of_ints.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/List_of_ints.java Thu Nov 3 15:08:55 2016
@@ -8,6 +8,7 @@ import java.util.Iterator;
import java.util.NoSuchElementException;
import org.apache.uima.internal.util.IntListIterator;
+import org.apache.uima.util.impl.Constants;
/**
* a List API that returns ints instead of T
@@ -101,20 +102,17 @@ public interface List_of_ints extends It
public void sort();
- public static int[] EMPTY_INT_ARRAY = new int[0];
-
-
public static List_of_ints EMPTY_LIST() {
return new List_of_ints() {
@Override
public int[] toArray() {
- return EMPTY_INT_ARRAY;
+ return Constants.EMPTY_INT_ARRAY;
}
@Override
public int[] toArrayMinCopy() {
- return EMPTY_INT_ARRAY;
+ return Constants.EMPTY_INT_ARRAY;
}
@Override