diff options
author | Sverker Eriksson <sverker@erlang.org> | 2021-11-02 19:44:34 +0100 |
---|---|---|
committer | Sverker Eriksson <sverker@erlang.org> | 2021-11-04 13:15:30 +0100 |
commit | fba2b265b12b19e6660b981169528ec7bc68cd2e (patch) | |
tree | 88d975beeec19cc3d3ade8b94bf5eec84603798b /lib/jinterface | |
parent | 80090b80a48f01243c8de41709d4caa5fe4d463d (diff) | |
download | erlang-fba2b265b12b19e6660b981169528ec7bc68cd2e.tar.gz |
jinterface: Fix java compiler warning
by avoiding deprecated Double(double) constructor.
Diffstat (limited to 'lib/jinterface')
-rw-r--r-- | lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangDouble.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangDouble.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangDouble.java index 5084848562..91cb1800e3 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangDouble.java +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangDouble.java @@ -123,7 +123,7 @@ public class OtpErlangDouble extends OtpErlangObject { @Override protected int doHashCode() { - final Double v = new Double(d); + final Double v = Double.valueOf(d); return v.hashCode(); } } |