mirror of https://github.com/apache/openjpa.git
OPENJPA-1700 FindBugs - This method might drop an exception. In general, exceptions should be handled or reported in some way, or they should be thrown out of the method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@954695 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72ddd27a00
commit
73692a6d32
|
@ -626,8 +626,13 @@ public class Configurations {
|
|||
throw new NestableRuntimeException(
|
||||
_loc.get("naming-err", name).getMessage(), ne);
|
||||
} finally {
|
||||
if (ctx != null)
|
||||
try { ctx.close(); } catch (Exception e) {}
|
||||
if (ctx != null) {
|
||||
try {
|
||||
ctx.close();
|
||||
} catch (NamingException ne) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue