X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FWeight.java;h=5e33327fac7ec77eac23a14ec0aa46a6b4e65342;hb=62e26730c12aa80689e068908090d801869ab701;hp=47547ba4f524711c42a3bc1c3e561fec0be48853;hpb=b974e749af3a4b2df3737b2d361233c704dcc4d8;p=Persons_Comparator.git diff --git a/src/Weight.java b/src/Weight.java index 47547ba..5e33327 100644 --- a/src/Weight.java +++ b/src/Weight.java @@ -26,7 +26,7 @@ public class Weight implements Comparable { @Override public int compareTo(Weight weight) { - int distance = weight.weight - this.getWeight(); + int distance = weight.getWeight() - this.getWeight(); if (distance >= 0) return distance; else