Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
2836-jinterface-Fix-java-compiler-warning.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2836-jinterface-Fix-java-compiler-warning.patch of Package erlang
From fba2b265b12b19e6660b981169528ec7bc68cd2e Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Tue, 2 Nov 2021 19:44:34 +0100 Subject: [PATCH 6/8] jinterface: Fix java compiler warning by avoiding deprecated Double(double) constructor. --- .../java_src/com/ericsson/otp/erlang/OtpErlangDouble.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } } -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor