diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2013-09-15 08:34:39 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2013-09-15 08:36:24 +0200 |
commit | e5c813a819e19d3607addb61470f102cedb3cfc7 (patch) | |
tree | c37e92d7a8ca30e702b59abd12c24fc5c1e88680 | |
parent | 9b7244a3d1f48c3eae7fae9c6da8f0e3176090f8 (diff) | |
download | cgeo-e5c813a819e19d3607addb61470f102cedb3cfc7.zip cgeo-e5c813a819e19d3607addb61470f102cedb3cfc7.tar.gz cgeo-e5c813a819e19d3607addb61470f102cedb3cfc7.tar.bz2 |
Add note about Waypoint natural ordering
-rw-r--r-- | main/src/cgeo/geocaching/Waypoint.java | 3 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/files/SimpleDirChooser.java | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/Waypoint.java b/main/src/cgeo/geocaching/Waypoint.java index f3d4e4f..b204bdd 100644 --- a/main/src/cgeo/geocaching/Waypoint.java +++ b/main/src/cgeo/geocaching/Waypoint.java @@ -14,6 +14,9 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +/** + * Note: this class has a natural ordering that is inconsistent with equals. + */ public class Waypoint implements IWaypoint, Comparable<Waypoint> { public static final String PREFIX_OWN = "OWN"; diff --git a/main/src/cgeo/geocaching/files/SimpleDirChooser.java b/main/src/cgeo/geocaching/files/SimpleDirChooser.java index ba7c679..2d3565a 100644 --- a/main/src/cgeo/geocaching/files/SimpleDirChooser.java +++ b/main/src/cgeo/geocaching/files/SimpleDirChooser.java @@ -197,6 +197,9 @@ public class SimpleDirChooser extends AbstractListActivity { } } + /** + * Note: this class has a natural ordering that is inconsistent with equals. + */ public static class Option implements Comparable<Option> { private final String name; private final String path; |