summaryrefslogtreecommitdiff
path: root/altoslib/AltosPointDouble.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-07-17 11:38:43 -0700
committerKeith Packard <keithp@keithp.com>2019-07-17 11:38:43 -0700
commit784ccd37d051e8b88ef1b150ccb4e89103675b3e (patch)
treef1c55383072a584f8a27b55c18b4fa5311802147 /altoslib/AltosPointDouble.java
parent25be2785cf34773bdcac5ec7b2a41769e352812a (diff)
altoslib: Stop using deprecated Java functionality
new Double(x) -> Double.valueOf(x) c.newInstance() -> c.getDeclaredConstructor().newInstance() Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosPointDouble.java')
-rw-r--r--altoslib/AltosPointDouble.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altoslib/AltosPointDouble.java b/altoslib/AltosPointDouble.java
index 59e2f76c..f775738a 100644
--- a/altoslib/AltosPointDouble.java
+++ b/altoslib/AltosPointDouble.java
@@ -22,7 +22,7 @@ public class AltosPointDouble {
public double x, y;
public int hashCode() {
- return new Double(x).hashCode() ^ new Double(y).hashCode();
+ return Double.valueOf(x).hashCode() ^ Double.valueOf(y).hashCode();
}
public boolean equals(Object o) {