You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2019/04/10 18:08:26 UTC
[uima-uimafit] 01/01: Revert "[UIMA-6013] Adjust to getView
throwing CASException"
This is an automated email from the ASF dual-hosted git repository.
rec pushed a commit to branch bugfix/UIMA-6013-Adjust-to-getView-throwing-CASException
in repository https://gitbox.apache.org/repos/asf/uima-uimafit.git
commit a4abd14c3368ac4c1169a7429c4998cff61417d1
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Wed Apr 10 20:08:10 2019 +0200
Revert "[UIMA-6013] Adjust to getView throwing CASException"
This reverts commit f4700e3f4f693b11ecacf93dac06bf40dbc3f978.
---
.../main/java/org/apache/uima/fit/component/ViewCreatorAnnotator.java | 2 +-
.../java/org/apache/uima/fit/component/ViewTextCopierAnnotator.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/uimafit-core/src/main/java/org/apache/uima/fit/component/ViewCreatorAnnotator.java b/uimafit-core/src/main/java/org/apache/uima/fit/component/ViewCreatorAnnotator.java
index eb787db..9d6bc49 100644
--- a/uimafit-core/src/main/java/org/apache/uima/fit/component/ViewCreatorAnnotator.java
+++ b/uimafit-core/src/main/java/org/apache/uima/fit/component/ViewCreatorAnnotator.java
@@ -70,7 +70,7 @@ public class ViewCreatorAnnotator extends JCasAnnotator_ImplBase {
try {
try {
return aJCas.getView(aViewName);
- } catch (CASException | CASRuntimeException ce) {
+ } catch (CASRuntimeException ce) {
return aJCas.createView(aViewName);
}
} catch (CASException ce) {
diff --git a/uimafit-core/src/main/java/org/apache/uima/fit/component/ViewTextCopierAnnotator.java b/uimafit-core/src/main/java/org/apache/uima/fit/component/ViewTextCopierAnnotator.java
index d5621a4..1057858 100644
--- a/uimafit-core/src/main/java/org/apache/uima/fit/component/ViewTextCopierAnnotator.java
+++ b/uimafit-core/src/main/java/org/apache/uima/fit/component/ViewTextCopierAnnotator.java
@@ -59,7 +59,7 @@ public class ViewTextCopierAnnotator extends JCasAnnotator_ImplBase {
JCas destinationView;
try {
destinationView = jCas.getView(destinationViewName);
- } catch (CASException | CASRuntimeException ce) {
+ } catch (CASRuntimeException ce) {
destinationView = jCas.createView(destinationViewName);
}
destinationView.setDocumentText(sourceView.getDocumentText());