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 2017/09/05 17:15:58 UTC
svn commit: r1807372 -
/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java
Author: schor
Date: Tue Sep 5 17:15:58 2017
New Revision: 1807372
URL: http://svn.apache.org/viewvc?rev=1807372&view=rev
Log:
no Jira - cleanup JCas - remove deprecated methods that had never been released; improve error msg
Modified:
uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java
Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java?rev=1807372&r1=1807371&r2=1807372&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/jcas/JCas.java Tue Sep 5 17:15:58 2017
@@ -165,7 +165,7 @@ public interface JCas extends AbstractCa
*/
@Deprecated
default void putJfsFromCaddr(int casAddr, FeatureStructure fs) {
- throw new UnsupportedOperationException("not supported in UIMA v3");
+ throw new UnsupportedOperationException("not supported in UIMA v3; maybe caused by running with UIMA v2 JCas classes in UIMA v3");
}
/*
@@ -173,7 +173,7 @@ public interface JCas extends AbstractCa
* @deprecated only for V2 compiling
*/
default <T extends TOP> T getJfsFromCaddr(int casAddr) {
- throw new UnsupportedOperationException("not supported in UIMA v3");
+ throw new UnsupportedOperationException("not supported in UIMA v3; maybe caused by running with UIMA v2 JCas classes in UIMA v3");
}
/*
@@ -364,18 +364,6 @@ public interface JCas extends AbstractCa
* updatable (it has no subfields). This is initialized lazily on first reference, and reset when
* the CAS is reset.
* @return 0-length instance of a ByteArray
- * @deprecated renamed getEmptyXXXArray
- */
- @Deprecated
- default ByteArray getByteArray0L() {
- return this.getCas().getEmptyByteArray();
- }
- /**
- * A constant for each cas which holds a 0-length instance. Since this can be a common value, we
- * avoid creating multiple copies of it. All uses can use the same value because it is not
- * updatable (it has no subfields). This is initialized lazily on first reference, and reset when
- * the CAS is reset.
- * @return 0-length instance of a ByteArray
*/
default ByteArray getEmptyByteArray() {
return this.getCas().getEmptyByteArray();
@@ -387,18 +375,6 @@ public interface JCas extends AbstractCa
* updatable (it has no subfields). This is initialized lazily on first reference, and reset when
* the CAS is reset.
* @return 0-length instance of a ShortArray
- * @deprecated renamed getEmptyXXXArray
- */
- @Deprecated
- default ShortArray getShortArray0L() {
- return this.getCas().getEmptyShortArray();
- }
- /**
- * A constant for each cas which holds a 0-length instance. Since this can be a common value, we
- * avoid creating multiple copies of it. All uses can use the same value because it is not
- * updatable (it has no subfields). This is initialized lazily on first reference, and reset when
- * the CAS is reset.
- * @return 0-length instance of a ShortArray
*/
default ShortArray getEmptyuShortArray() {
return this.getCas().getEmptyShortArray();
@@ -410,18 +386,6 @@ public interface JCas extends AbstractCa
* updatable (it has no subfields). This is initialized lazily on first reference, and reset when
* the CAS is reset.
* @return 0-length instance of a LongArray
- * @deprecated renamed getEmptyXXXArray
- */
- @Deprecated
- default LongArray getLongArray0L() {
- return this.getCas().getEmptyLongArray();
- }
- /**
- * A constant for each cas which holds a 0-length instance. Since this can be a common value, we
- * avoid creating multiple copies of it. All uses can use the same value because it is not
- * updatable (it has no subfields). This is initialized lazily on first reference, and reset when
- * the CAS is reset.
- * @return 0-length instance of a LongArray
*/
default LongArray getEmptyLongArray() {
return this.getCas().getEmptyLongArray();
@@ -433,18 +397,6 @@ public interface JCas extends AbstractCa
* updatable (it has no subfields). This is initialized lazily on first reference, and reset when
* the CAS is reset.
* @return 0-length instance of a DoubleArray
- * @deprecated renamed getEmptyXXXArray
- */
- @Deprecated
- default DoubleArray getDoubleArray0L() {
- return this.getCas().getEmptyDoubleArray();
- }
- /**
- * A constant for each cas which holds a 0-length instance. Since this can be a common value, we
- * avoid creating multiple copies of it. All uses can use the same value because it is not
- * updatable (it has no subfields). This is initialized lazily on first reference, and reset when
- * the CAS is reset.
- * @return 0-length instance of a DoubleArray
*/
default DoubleArray getEmptyDoubleArray() {
return this.getCas().getEmptyDoubleArray();
@@ -453,18 +405,6 @@ public interface JCas extends AbstractCa
/**
* A constant for each cas which holds a 0-length instance. Since this can be a common value, we
* avoid creating multiple copies of it. All uses can use the same value because it is not
- * updatable (it has no subfields). This is initialized lazily on first reference, and reset when
- * the CAS is reset.
- * @return 0-length instance of a DoubleArray
- * @deprecated renamed getEmptyXXXArray
- */
- @Deprecated
- default BooleanArray getBooleanArray0L() {
- return this.getCas().getEmptyBooleanArray();
- }
- /**
- * A constant for each cas which holds a 0-length instance. Since this can be a common value, we
- * avoid creating multiple copies of it. All uses can use the same value because it is not
* updatable (it has no subfields). This is initialized lazily on first reference, and reset when
* the CAS is reset.
* @return 0-length instance of a DoubleArray