You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2017/06/14 15:26:29 UTC

[2/4] opennlp git commit: OPENNLP-1090: Remove code from BaseToolFactory to prints errors

OPENNLP-1090: Remove code from BaseToolFactory to prints errors


Project: http://git-wip-us.apache.org/repos/asf/opennlp/repo
Commit: http://git-wip-us.apache.org/repos/asf/opennlp/commit/8d7e1c3c
Tree: http://git-wip-us.apache.org/repos/asf/opennlp/tree/8d7e1c3c
Diff: http://git-wip-us.apache.org/repos/asf/opennlp/diff/8d7e1c3c

Branch: refs/heads/LangDetect
Commit: 8d7e1c3c5d72fda60b5db5943a6ca3d89b3de72e
Parents: aae0f29
Author: Jörn Kottmann <jo...@apache.org>
Authored: Thu Jun 8 15:17:09 2017 +0200
Committer: Jörn Kottmann <jo...@apache.org>
Committed: Thu Jun 8 15:41:02 2017 +0200

----------------------------------------------------------------------
 .../src/main/java/opennlp/tools/util/BaseToolFactory.java        | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/opennlp/blob/8d7e1c3c/opennlp-tools/src/main/java/opennlp/tools/util/BaseToolFactory.java
----------------------------------------------------------------------
diff --git a/opennlp-tools/src/main/java/opennlp/tools/util/BaseToolFactory.java b/opennlp-tools/src/main/java/opennlp/tools/util/BaseToolFactory.java
index 6aa6210..6c994da 100644
--- a/opennlp-tools/src/main/java/opennlp/tools/util/BaseToolFactory.java
+++ b/opennlp-tools/src/main/java/opennlp/tools/util/BaseToolFactory.java
@@ -113,8 +113,6 @@ public abstract class BaseToolFactory {
     } catch (Exception e) {
       String msg = "Could not instantiate the " + subclassName
           + ". The initialization throw an exception.";
-      System.err.println(msg);
-      e.printStackTrace();
       throw new InvalidFormatException(msg, e);
     }
     return theFactory;
@@ -131,8 +129,6 @@ public abstract class BaseToolFactory {
         String msg = "Could not instantiate the "
             + factoryClass.getCanonicalName()
             + ". The initialization throw an exception.";
-        System.err.println(msg);
-        e.printStackTrace();
         throw new InvalidFormatException(msg, e);
       }
     }