Author: vyemialyanchyk
Date: 2009-02-26 04:56:07 -0500 (Thu, 26 Feb 2009)
New Revision: 13826
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
Log:
close input stream
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2009-02-26
09:50:39 UTC (rev 13825)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2009-02-26
09:56:07 UTC (rev 13826)
@@ -420,7 +420,18 @@
} catch(HibernateException e) {
// just ignore
}
- return( is != null );
+ boolean res = false;
+ if (is != null )
+ {
+ res = true;
+ try {
+ is.close();
+ }
+ catch (IOException e) {
+ // ignore
+ }
+ }
+ return res;
}
/**
Show replies by date