Author: schor Date: Fri Jan 13 14:37:25 2017 New Revision: 1778599 URL: http://svn.apache.org/viewvc?rev=1778599&view=rev Log: [UIMA-5225] add referenced but unused method for old v2 style jcasgen to reduce (ignorable but still annoying) compile errors during migration phase
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/AnnotationBase_Type.java uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation_Type.java Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/AnnotationBase_Type.java URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/AnnotationBase_Type.java?rev=1778599&r1=1778598&r2=1778599&view=diff ============================================================================== --- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/AnnotationBase_Type.java (original) +++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/AnnotationBase_Type.java Fri Jan 13 14:37:25 2017 @@ -23,6 +23,7 @@ import org.apache.uima.cas.CAS; import org.apache.uima.cas.Feature; import org.apache.uima.cas.SofaFS; import org.apache.uima.cas.Type; +import org.apache.uima.cas.impl.FSGenerator; import org.apache.uima.jcas.JCas; import org.apache.uima.jcas.JCasRegistry; @@ -41,6 +42,11 @@ public class AnnotationBase_Type extends final Feature casFeat_sofa; final int casFeatCode_sofa; + + protected FSGenerator<?> getFSGenerator() { + return null; // no longer used, but may be needed for compatibility with older existing JCasGen'd cover classes that might extend this class + } + public SofaFS getSofa(int addr) { throw new RuntimeException("not supported"); Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java?rev=1778599&r1=1778598&r2=1778599&view=diff ============================================================================== --- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java (original) +++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/cas/TOP_Type.java Fri Jan 13 14:37:25 2017 @@ -21,6 +21,7 @@ package org.apache.uima.jcas.cas; import org.apache.uima.cas.Type; import org.apache.uima.cas.impl.CASImpl; +import org.apache.uima.cas.impl.FSGenerator; import org.apache.uima.cas.impl.LowLevelCAS; import org.apache.uima.cas.impl.TypeImpl; import org.apache.uima.jcas.JCas; @@ -88,9 +89,9 @@ public class TOP_Type { // new subtypes of TOP_Type use <class-name>.this instead protected final TOP_Type instanceOf_Type; // allow ref to this in inner class -// protected FSGenerator<?> getFSGenerator() { -// return null; // no longer used, but may be needed for compatibility with older existing JCasGen'd cover classes that might extend this class -// } + protected FSGenerator<?> getFSGenerator() { + return null; // no longer used, but may be needed for compatibility with older existing JCasGen'd cover classes that might extend this class + } // // private FSGenerator fsGenerator = new FSGenerator() { // @SuppressWarnings("unchecked") Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation_Type.java URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation_Type.java?rev=1778599&r1=1778598&r2=1778599&view=diff ============================================================================== --- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation_Type.java (original) +++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/jcas/tcas/Annotation_Type.java Fri Jan 13 14:37:25 2017 @@ -22,6 +22,7 @@ package org.apache.uima.jcas.tcas; import org.apache.uima.cas.Feature; import org.apache.uima.cas.Type; import org.apache.uima.cas.impl.CASImpl; +import org.apache.uima.cas.impl.FSGenerator; import org.apache.uima.jcas.JCas; import org.apache.uima.jcas.JCasRegistry; @@ -32,9 +33,9 @@ import org.apache.uima.jcas.JCasRegistry */ @Deprecated public class Annotation_Type extends org.apache.uima.jcas.cas.AnnotationBase_Type { -// protected FSGenerator<?> getFSGenerator() { -// return null; // no longer used, but may be needed for compatibility with older existing JCasGen'd cover classes that might extend this class -// } + protected FSGenerator<?> getFSGenerator() { + return null; // no longer used, but may be needed for compatibility with older existing JCasGen'd cover classes that might extend this class + } // // private final FSGenerator fsGenerator = new FSGenerator() { // @SuppressWarnings("unchecked")