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 2013/07/27 03:30:31 UTC
svn commit: r1507545 -
/uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/cpe/FileSystemCollectionReader.java
Author: schor
Date: Sat Jul 27 01:30:30 2013
New Revision: 1507545
URL: http://svn.apache.org/r1507545
Log:
[UIMA-3121] The dependency on the DocumentAnnotation JCas cover classes actually came from the examples/cpe/FileSystemCollectionReader code.
Modified:
uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/cpe/FileSystemCollectionReader.java
Modified: uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/cpe/FileSystemCollectionReader.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/cpe/FileSystemCollectionReader.java?rev=1507545&r1=1507544&r2=1507545&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/cpe/FileSystemCollectionReader.java (original)
+++ uima/uimaj/trunk/uimaj-examples/src/main/java/org/apache/uima/examples/cpe/FileSystemCollectionReader.java Sat Jul 27 01:30:30 2013
@@ -151,7 +151,7 @@ public class FileSystemCollectionReader
// set language if it was explicitly specified as a configuration parameter
if (mLanguage != null) {
- ((DocumentAnnotation) jcas.getDocumentAnnotationFs()).setLanguage(mLanguage);
+ jcas.setDocumentLanguage(mLanguage);
}
// Also store location of source document in CAS. This information is critical