Changeset 11753 in josm for trunk/src


Ignore:
Timestamp:
2017-03-20T23:30:37+01:00 (8 years ago)
Author:
Don-vip
Message:

see #14528 - make code compile with Eclipse Neon.2 (4.6.2) Build id: M20161124-1400

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java

    r11752 r11753  
    8585
    8686        // Order the glyphs along the line to ensure that they are drawn corretly.
    87         Collections.sort(offsetGlyphs, Comparator.comparing(e -> e.offset));
     87        Collections.sort(offsetGlyphs, Comparator.comparing(OffsetGlyph::getOffset));
    8888
    8989        // Now translate all glyphs. This will modify the glyphs stored in gvs.
     
    319319        }
    320320
     321        private double getOffset() {
     322            return offset;
     323        }
     324
    321325        @Override
    322326        public String toString() {
    323327            return "OffsetGlyph [offset=" + offset + ", preRotate=" + preRotate + ", glyphIndex=" + glyphIndex + "]";
    324328        }
    325 
    326329    }
    327330
Note: See TracChangeset for help on using the changeset viewer.