Changeset 11749 in josm


Ignore:
Timestamp:
2017-03-20T22:35:41+01:00 (6 months ago)
Author:
Don-vip
Message:

see #14528 - checkstyle

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r11748 r11749  
    10301030                displayText(() -> translatedGvs.forEach(gv -> g.drawGlyphVector(gv, 0, 0)),
    10311031                        () -> translatedGvs.stream().collect(
    1032                                         () -> new Path2D.Double(),
    1033                                         (p, gv) -> p.append(gv.getOutline(0, 0), false),
    1034                                         (p1, p2) -> p1.append(p2, false)),
     1032                                Path2D.Double::new,
     1033                                (p, gv) -> p.append(gv.getOutline(0, 0), false),
     1034                                (p1, p2) -> p1.append(p2, false)),
    10351035                        osm.isDisabled(), text);
    10361036            } else if (Main.isTraceEnabled()) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java

    r11748 r11749  
    9090     * @return The list of glyphs.
    9191     */
    92     private List<OffsetGlyph> computeOffsetGlyphs(List<GlyphVector> gvs, double startOffset, boolean rotateText) {
     92    private static List<OffsetGlyph> computeOffsetGlyphs(List<GlyphVector> gvs, double startOffset, boolean rotateText) {
    9393        double offset = startOffset;
    9494        ArrayList<OffsetGlyph> offsetGlyphs = new ArrayList<>();
     
    187187     * This is used to always place at least 50% of the text correctly.
    188188     */
    189     private class UpsideComputingVisitor implements PathSegmentConsumer {
     189    private static class UpsideComputingVisitor implements PathSegmentConsumer {
    190190
    191191        private final double startOffset;
Note: See TracChangeset for help on using the changeset viewer.