Repository: opennlp Updated Branches: refs/heads/master aae0f2997 -> 8d7e1c3c5
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/master Commit: 8d7e1c3c5d72fda60b5db5943a6ca3d89b3de72e Parents: aae0f29 Author: Jörn Kottmann <[email protected]> Authored: Thu Jun 8 15:17:09 2017 +0200 Committer: Jörn Kottmann <[email protected]> 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); } }
