Author: vyemialyanchyk
Date: 2009-04-07 08:45:22 -0400 (Tue, 07 Apr 2009)
New Revision: 14549
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/DynamicSQLPreviewView.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/NavigatorProvider.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryParametersPage.java
Log:
JBIDE-4137
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/DynamicSQLPreviewView.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/DynamicSQLPreviewView.java 2009-04-07
12:44:48 UTC (rev 14548)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/DynamicSQLPreviewView.java 2009-04-07
12:45:22 UTC (rev 14549)
@@ -168,7 +168,6 @@
result = (String) context.execute(new ExecutionContext.Command() {
public Object execute() {
- Session session = null;
try {
SessionFactoryImpl sfimpl = (SessionFactoryImpl) sf; // hack - to get to the actual
queries..
StringBuffer str = new StringBuffer(256);
@@ -205,7 +204,6 @@
}
return str.toString();
} catch(Throwable t) {
- if(session!=null) session.close();
//StringWriter sw = new StringWriter();
StringBuffer msgs = new StringBuffer();
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/NavigatorProvider.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/NavigatorProvider.java 2009-04-07
12:44:48 UTC (rev 14548)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/NavigatorProvider.java 2009-04-07
12:45:22 UTC (rev 14549)
@@ -85,7 +85,7 @@
// TODO Auto-generated catch block
e.printStackTrace();
}
- children[kids] = new Long(kids);
+ children[kids] = Long.valueOf(kids);
}
return children;
}
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryParametersPage.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryParametersPage.java 2009-04-07
12:44:48 UTC (rev 14548)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryParametersPage.java 2009-04-07
12:45:22 UTC (rev 14549)
@@ -249,7 +249,7 @@
int i = 0;
while(iterator.hasNext()) {
if (type == ((Type) iterator.next())) {
- return new Integer(i);
+ return Integer.valueOf(i);
}
i++;
}