db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1603099 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
Date Tue, 17 Jun 2014 09:10:14 GMT
Author: kahatlen
Date: Tue Jun 17 09:10:14 2014
New Revision: 1603099

URL: http://svn.apache.org/r1603099
Log:
DERBY-6615: Remove unused newInstance() method in BaseMonitor

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java?rev=1603099&r1=1603098&r2=1603099&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
Tue Jun 17 09:10:14 2014
@@ -774,31 +774,6 @@ abstract class BaseMonitor
 
 	/**
 	*/
-	private Object newInstance(String className) {
-
-		try {
-
-			Class factoryClass = Class.forName(className);
-			return factoryClass.newInstance();
-		}
-		catch (ClassNotFoundException e) {
-			report(className + " " + e.toString());
-		}
-		catch (InstantiationException e) {
-			report(className + " " + e.toString());
-		}
- 		catch (IllegalAccessException e) {
-			report(className + " " + e.toString());
-		}
-		catch (LinkageError le) {
-			report(className + " " + le.toString());
-			reportException(le);
-		}
-
-		return null;
-	}
-	/**
-	*/
 	private Object newInstance(Class classObject) {
 
 		try {



Mime
View raw message