aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2014-09-10 11:37:55 +0200
committerVlad Dumitrescu <[email protected]>2014-09-11 21:24:27 +0200
commit4733f3f7abb7c815bf1e1295bf0a55526e318d66 (patch)
treedc1e59164f3e072d5ee2c35767f2b02608dc965c /lib
parentea9ecb6c1cc2781c8ad9bdacaacc2245987df908 (diff)
downloadotp-4733f3f7abb7c815bf1e1295bf0a55526e318d66.tar.gz
otp-4733f3f7abb7c815bf1e1295bf0a55526e318d66.tar.bz2
otp-4733f3f7abb7c815bf1e1295bf0a55526e318d66.zip
don't warn about some unused fields/variables
Diffstat (limited to 'lib')
-rw-r--r--lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java3
-rw-r--r--lib/jinterface/test/nc_SUITE_data/echo_server.java1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java
index 6e91a855a0..c542694550 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java
@@ -44,8 +44,11 @@ public class OtpOutputStream extends ByteArrayOutputStream {
public static final int defaultIncrement = 2048;
// static formats, used to encode floats and doubles
+ @SuppressWarnings("unused")
private static final DecimalFormat eform = new DecimalFormat("e+00;e-00");
+ @SuppressWarnings("unused")
private static final BigDecimal ten = new BigDecimal(10.0);
+ @SuppressWarnings("unused")
private static final BigDecimal one = new BigDecimal(1.0);
private int fixedSize = Integer.MAX_VALUE;
diff --git a/lib/jinterface/test/nc_SUITE_data/echo_server.java b/lib/jinterface/test/nc_SUITE_data/echo_server.java
index 2e18e908d4..fc9a1a22da 100644
--- a/lib/jinterface/test/nc_SUITE_data/echo_server.java
+++ b/lib/jinterface/test/nc_SUITE_data/echo_server.java
@@ -206,6 +206,7 @@ public class echo_server {
&& i instanceof OtpErlangString) {
final OtpErlangString s = (OtpErlangString) i;
final String ss = s.stringValue().substring(3, 6);
+ @SuppressWarnings("unused")
final int[] cps = OtpErlangString.stringToCodePoints(ss);
return s;
} else if (atomValue.equals("utf8")) {