From 8d7e1c3c5d72fda60b5db5943a6ca3d89b3de72e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Kottmann?= Date: Thu, 8 Jun 2017 15:17:09 +0200 Subject: [PATCH] OPENNLP-1090: Remove code from BaseToolFactory to prints errors --- .../src/main/java/opennlp/tools/util/BaseToolFactory.java | 4 ---- 1 file changed, 4 deletions(-) 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 6aa62100e..6c994da0e 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 static BaseToolFactory create(String subclassName, } 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 static BaseToolFactory create(Class factoryCla String msg = "Could not instantiate the " + factoryClass.getCanonicalName() + ". The initialization throw an exception."; - System.err.println(msg); - e.printStackTrace(); throw new InvalidFormatException(msg, e); } }