private static void removeSuccessiveDuplicates(final List<Geopoint> points) {
        if (points == null || points.isEmpty()) {
            return;
        }
        Geopoint last = null;
        final Iterator<Geopoint> it = points.listIterator();
        while (it.hasNext()) {
            final Geopoint current = it.next();
            if (last != null && last.equals(current)) {
                it.remove();
            }
            last = current;
        }
    }
This constructor is specifically for creating objects with applied default style
main/src/main/java/cgeo/geocaching/models/geoitem/GeoPrimitive.java