Author: dgeraskov
Date: 2012-02-09 09:19:57 -0500 (Thu, 09 Feb 2012)
New Revision: 38553
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazyDatabaseSchemaWorkbenchAdapter.java
Log:
https://issues.jboss.org/browse/JBIDE-8394
No need to synchronize the method of a "singleton". Method readDatabaseSchema
calls "execute" method of consoleConfiguration which is synchronized through
execution context. So the same console configuration will be blocked(as expected).
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazyDatabaseSchemaWorkbenchAdapter.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazyDatabaseSchemaWorkbenchAdapter.java 2012-02-09
14:03:33 UTC (rev 38552)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazyDatabaseSchemaWorkbenchAdapter.java 2012-02-09
14:19:57 UTC (rev 38553)
@@ -55,7 +55,7 @@
}
@SuppressWarnings("unchecked")
- public synchronized Object[] getChildren(Object o, final IProgressMonitor monitor) {
+ public Object[] getChildren(Object o, final IProgressMonitor monitor) {
LazyDatabaseSchema dbs = getLazyDatabaseSchema( o );
dbs.setConnected(false);
dbs.setErrorFlag(false);