[jbosstools-commits] JBoss Tools SVN: r43480 - workspace/akazakov/db/org.jboss.tools.common.db/src/org/jboss/tools/common/db.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Sep 6 15:44:48 EDT 2012


Author: scabanovich
Date: 2012-09-06 15:44:48 -0400 (Thu, 06 Sep 2012)
New Revision: 43480

Modified:
   workspace/akazakov/db/org.jboss.tools.common.db/src/org/jboss/tools/common/db/CommonDbPlugin.java
   workspace/akazakov/db/org.jboss.tools.common.db/src/org/jboss/tools/common/db/DBManager.java
Log:
JBIDE-12446
https://issues.jboss.org/browse/JBIDE-12446


Modified: workspace/akazakov/db/org.jboss.tools.common.db/src/org/jboss/tools/common/db/CommonDbPlugin.java
===================================================================
--- workspace/akazakov/db/org.jboss.tools.common.db/src/org/jboss/tools/common/db/CommonDbPlugin.java	2012-09-06 19:38:55 UTC (rev 43479)
+++ workspace/akazakov/db/org.jboss.tools.common.db/src/org/jboss/tools/common/db/CommonDbPlugin.java	2012-09-06 19:44:48 UTC (rev 43480)
@@ -30,9 +30,14 @@
         	public void run() {
 				try {
 					DBManager.getInstance().start();
-				} catch (InstantiationException | IllegalAccessException
-						| ClassNotFoundException | SQLException e) {
+				} catch (InstantiationException e) {
 					logError(e);
+				} catch (IllegalAccessException e) {
+					logError(e);
+				} catch (ClassNotFoundException e) {
+					logError(e);
+				} catch (SQLException e) {
+					logError(e);
 				}
         	}
         });

Modified: workspace/akazakov/db/org.jboss.tools.common.db/src/org/jboss/tools/common/db/DBManager.java
===================================================================
--- workspace/akazakov/db/org.jboss.tools.common.db/src/org/jboss/tools/common/db/DBManager.java	2012-09-06 19:38:55 UTC (rev 43479)
+++ workspace/akazakov/db/org.jboss.tools.common.db/src/org/jboss/tools/common/db/DBManager.java	2012-09-06 19:44:48 UTC (rev 43480)
@@ -72,9 +72,14 @@
 	public EntityManager createEntityManager() {
 		try {
 			start();
-		} catch (InstantiationException | IllegalAccessException
-				| ClassNotFoundException | SQLException e) {
+		} catch (InstantiationException e) {
 			CommonDbPlugin.getDefault().logError(e);
+		} catch (IllegalAccessException e) {
+			CommonDbPlugin.getDefault().logError(e);
+		} catch (ClassNotFoundException e) {
+			CommonDbPlugin.getDefault().logError(e);
+		} catch (SQLException e) {
+			CommonDbPlugin.getDefault().logError(e);
 		}
 		EntityManager em = emf.createEntityManager();
 		return em;



More information about the jbosstools-commits mailing list