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:25 UTC

[uima-uimafit] branch bugfix/UIMA-6013-Adjust-to-getView-throwing-CASException created (now a4abd14)

This is an automated email from the ASF dual-hosted git repository.

rec pushed a change to branch bugfix/UIMA-6013-Adjust-to-getView-throwing-CASException
in repository https://gitbox.apache.org/repos/asf/uima-uimafit.git.


      at a4abd14  Revert "[UIMA-6013] Adjust to getView throwing CASException"

This branch includes the following new commits:

     new a4abd14  Revert "[UIMA-6013] Adjust to getView throwing CASException"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[uima-uimafit] 01/01: Revert "[UIMA-6013] Adjust to getView throwing CASException"

Posted by re...@apache.org.
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());