You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2014/11/28 16:47:14 UTC
tomee git commit: PMD
Repository: tomee
Updated Branches:
refs/heads/tomee-1.7.x 2001d6346 -> 62acb7fa6
PMD
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/62acb7fa
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/62acb7fa
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/62acb7fa
Branch: refs/heads/tomee-1.7.x
Commit: 62acb7fa6135fd834551bec8b95e9138dc54d383
Parents: 2001d63
Author: andygumbrecht <an...@apache.org>
Authored: Fri Nov 28 16:46:39 2014 +0100
Committer: andygumbrecht <an...@apache.org>
Committed: Fri Nov 28 16:46:39 2014 +0100
----------------------------------------------------------------------
.../org/apache/openejb/util/NetworkUtil.java | 24 +++++++++++---------
1 file changed, 13 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/62acb7fa/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java b/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java
index e5b191e..6ea7cba 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/util/NetworkUtil.java
@@ -163,7 +163,8 @@ public final class NetworkUtil {
if (!checkLockFile(port)) {
try {
ss.close();
- } catch (final Exception ignored) {
+ } catch (final Exception e) {
+ //Ignore
}
continue;
}
@@ -191,7 +192,8 @@ public final class NetworkUtil {
final File f = new File(lf);
try {
lockFile = (!f.exists() && !f.createNewFile() ? null : (f.isFile() ? f : null));
- } catch (final IOException ignored) {
+ } catch (final IOException e) {
+ //Ignore
}
}
}
@@ -260,35 +262,35 @@ public final class NetworkUtil {
fileChannel.write(ByteBuffer.wrap(baos.toByteArray()));
}
- } catch (final Exception ignored) {
+ } catch (final Exception e) {
result = false;
} finally {
if (null != lock) {
try {
lock.release();
- } catch (final Exception ignored) {
-
+ } catch (final Exception e) {
+ //Ignore
}
}
if (null != baos) {
try {
baos.close();
- } catch (final Exception ignored) {
-
+ } catch (final Exception e) {
+ //Ignore
}
}
if (null != bais) {
try {
bais.close();
- } catch (final Exception ignored) {
-
+ } catch (final Exception e) {
+ //Ignore
}
}
if (null != raf) {
try {
raf.close();
- } catch (final Exception ignored) {
-
+ } catch (final Exception e) {
+ //Ignore
}
}
}