diff options
author | Vlad Dumitrescu <[email protected]> | 2014-09-10 11:56:34 +0200 |
---|---|---|
committer | Vlad Dumitrescu <[email protected]> | 2014-09-11 21:24:28 +0200 |
commit | 4390e435584d57b5fb41309f80043cb954c241cd (patch) | |
tree | 258906e327cdfc2d191b48b00456c1c032c99fb0 /lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java | |
parent | 4733f3f7abb7c815bf1e1295bf0a55526e318d66 (diff) | |
download | otp-4390e435584d57b5fb41309f80043cb954c241cd.tar.gz otp-4390e435584d57b5fb41309f80043cb954c241cd.tar.bz2 otp-4390e435584d57b5fb41309f80043cb954c241cd.zip |
silence 'potential resource leak' warnings
OtpInputStream and OtoOutputStream don't need closing (they are
ByteArray*Streams)
Diffstat (limited to 'lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java')
-rw-r--r-- | lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java index e7a9d1092c..9ad02506fd 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java @@ -358,6 +358,7 @@ public class OtpConnection extends AbstractConnection { * if the connection is not active or a communication * error occurs. */ + @SuppressWarnings("resource") public void send(final OtpErlangPid dest, final OtpErlangObject msg) throws IOException { // encode and send the message @@ -376,6 +377,7 @@ public class OtpConnection extends AbstractConnection { * if the connection is not active or a communication * error occurs. */ + @SuppressWarnings("resource") public void send(final String dest, final OtpErlangObject msg) throws IOException { // encode and send the message |