diff options
author | Vlad Dumitrescu <[email protected]> | 2014-09-10 09:47:22 +0200 |
---|---|---|
committer | Vlad Dumitrescu <[email protected]> | 2014-09-11 21:24:09 +0200 |
commit | a40e940ff0d3c24342a460c2f1b19a24cc01185d (patch) | |
tree | f8c6abbfd2116739cbb2b73363872cace7a9db6a /lib/jinterface/java_src | |
parent | cd39740a86aeeeba9da9ffb314b715ebc9158714 (diff) | |
download | otp-a40e940ff0d3c24342a460c2f1b19a24cc01185d.tar.gz otp-a40e940ff0d3c24342a460c2f1b19a24cc01185d.tar.bz2 otp-a40e940ff0d3c24342a460c2f1b19a24cc01185d.zip |
remove unnecessary null pointer checks
Diffstat (limited to 'lib/jinterface/java_src')
-rw-r--r-- | lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java index 1868dc7740..cf4e0ea98f 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpEpmd.java @@ -310,9 +310,7 @@ public class OtpEpmd { final int n = s.getInputStream().read(tmpbuf); if (n < 0) { - if (s != null) { s.close(); - } throw new IOException("Nameserver not responding on " + node.host() + " when publishing " + node.alive()); } @@ -341,9 +339,7 @@ public class OtpEpmd { throw new IOException("Nameserver not responding on " + node.host() + " when publishing " + node.alive()); } catch (final OtpErlangDecodeException e) { - if (s != null) { s.close(); - } if (traceLevel >= traceThreshold) { System.out.println("<- (invalid response)"); } @@ -351,9 +347,7 @@ public class OtpEpmd { + " when publishing " + node.alive()); } - if (s != null) { s.close(); - } return null; } |