Changeset 34652 in osm for applications


Ignore:
Timestamp:
2018-09-15T13:50:24+02:00 (6 years ago)
Author:
donvip
Message:

fix UnnecessaryParentheses warnings

Location:
applications/editors/josm/plugins/seachart
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/.project

    r32394 r34652  
    1616                        </arguments>
    1717                </buildCommand>
    18                 <buildCommand>
    19                         <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
    20                         <arguments>
    21                         </arguments>
    22                 </buildCommand>
    2318        </buildSpec>
    2419        <natures>
    2520                <nature>org.eclipse.jdt.core.javanature</nature>
    26                 <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
    2721        </natures>
    2822</projectDescription>
  • applications/editors/josm/plugins/seachart/src/render/Renderer.java

    r33195 r34652  
    423423        if (delta == null) delta = new Delta(Handle.CC);
    424424        if (bg == null) bg = new Color(0x00000000, true);
    425         if ((str == null) || (str.isEmpty())) str = " ";
     425        if (str == null || str.isEmpty()) str = " ";
    426426        FontRenderContext frc = g2.getFontRenderContext();
    427         GlyphVector gv = font.deriveFont((float) (font.getSize())).createGlyphVector(frc, str.equals(" ") ? "M" : str);
     427        GlyphVector gv = font.deriveFont((float) font.getSize()).createGlyphVector(frc, str.equals(" ") ? "M" : str);
    428428        Rectangle2D bounds = gv.getVisualBounds();
    429429        double width = bounds.getWidth();
     
    593593                    pos.translate((mid.getX() - centre.getX()), (mid.getY() - centre.getY()));
    594594                    Symbol label = new Symbol();
    595                     label.add(new Instr(Form.BBOX, new Rectangle2D.Double((-width / 2), (-height), width, height)));
     595                    label.add(new Instr(Form.BBOX, new Rectangle2D.Double((-width / 2), -height, width, height)));
    596596                    label.add(new Instr(Form.TEXT, new Caption(str, font, colour, new Delta(Handle.BC))));
    597597                    Symbols.drawSymbol(g2, label, sScale, centre.getX(), centre.getY(), null, new Delta(Handle.BC, pos));
     
    603603    public static void lightSector(Color col1, Color col2, double radius, double s1, double s2, Double dir, String str) {
    604604        if ((zoom >= 16) && (radius > 0.2)) {
    605             radius /= (Math.pow(2, zoom-15));
     605            radius /= Math.pow(2, zoom-15);
    606606        }
    607607        double mid = (((s1 + s2) / 2) + (s1 > s2 ? 180 : 0)) % 360;
     
    632632                    2 * (radial - arcWidth), -(s1 + 90), ((s1 < s2) ? (s1 - s2) : (s1 - s2 - 360)), Arc2D.OPEN));
    633633        }
    634         if ((str != null) && (!str.isEmpty())) {
     634        if (str != null && !str.isEmpty()) {
    635635            Font font = new Font("Arial", Font.PLAIN, 40);
    636636            double arc = (s2 > s1) ? (s2 - s1) : (s2 - s1 + 360);
  • applications/editors/josm/plugins/seachart/src/render/Rules.java

    r33995 r34652  
    546546                                        Renderer.symbol(Beacons.Stake, getScheme(feature.type));
    547547                                }
    548                         } else if ((shape == BcnSHP.BCN_PRCH) && (feature.type == Obj.BCNLAT) && !(feature.objs.containsKey(Obj.TOPMAR))) {
     548                        } else if (shape == BcnSHP.BCN_PRCH && feature.type == Obj.BCNLAT && !feature.objs.containsKey(Obj.TOPMAR)) {
    549549                                switch ((CatLAM) getAttEnum(feature.type, Att.CATLAM)) {
    550550                                case LAM_PORT:
     
    565565                                        }
    566566                                        if (topmap.containsKey(Att.TOPSHP)) {
    567                                                 Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.TOPMAR), Topmarks.BeaconDelta);
     567                                                Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.TOPMAR), Topmarks.BeaconDelta);
    568568                                        }
    569569                                } else if (feature.objs.containsKey(Obj.DAYMAR)) {
    570570                                        AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0);
    571571                                        if (topmap.containsKey(Att.TOPSHP)) {
    572                                                 Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.DAYMAR), Topmarks.BeaconDelta);
     572                                                Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.DAYMAR), Topmarks.BeaconDelta);
    573573                                        }
    574574                                }
     
    591591                                AttMap topmap = feature.objs.get(Obj.TOPMAR).get(0);
    592592                                if (topmap.containsKey(Att.TOPSHP)) {
    593                                         Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.TOPMAR), Topmarks.BuoyDeltas.get(shape));
     593                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.TOPMAR), Topmarks.BuoyDeltas.get(shape));
    594594                                }
    595595                        } else if (feature.objs.containsKey(Obj.DAYMAR)) {
    596596                                AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0);
    597597                                if (topmap.containsKey(Att.TOPSHP)) {
    598                                         Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.DAYMAR), Topmarks.BuoyDeltas.get(shape));
     598                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.DAYMAR), Topmarks.BuoyDeltas.get(shape));
    599599                                }
    600600                        }
     
    649649                        } else if (feature.type == Obj.CBLOHD) {
    650650                                AttMap atts = feature.objs.get(Obj.CBLOHD).get(0);
    651                                 if ((atts != null) && (atts.containsKey(Att.CATCBL)) && (atts.get(Att.CATCBL).val == CatCBL.CBL_POWR)) {
     651                                if (atts != null && atts.containsKey(Att.CATCBL) && atts.get(Att.CATCBL).val == CatCBL.CBL_POWR) {
    652652                                        Renderer.lineSymbols(Areas.CableDash, 0, Areas.CableDot, Areas.CableFlash, 2, Color.black);
    653653                                } else {
     
    724724                        if (Renderer.zoom >= 15) {
    725725                                AttMap atts = getAtts(Obj.DISMAR, 0);
    726                                 if ((atts != null) && (atts.containsKey(Att.WTWDIS))) {
     726                                if (atts != null && atts.containsKey(Att.WTWDIS)) {
    727727                                        Double dist = (Double) atts.get(Att.WTWDIS).val;
    728728                                        String str = "";
     
    777777                                AttMap topmap = feature.objs.get(Obj.TOPMAR).get(0);
    778778                                if (topmap.containsKey(Att.TOPSHP)) {
    779                                         Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.TOPMAR), Topmarks.FloatDelta);
     779                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.TOPMAR), Topmarks.FloatDelta);
    780780                                }
    781781                        } else if (feature.objs.containsKey(Obj.DAYMAR)) {
    782782                                AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0);
    783783                                if (topmap.containsKey(Att.TOPSHP)) {
    784                                         Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.DAYMAR), Topmarks.FloatDelta);
     784                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.DAYMAR), Topmarks.FloatDelta);
    785785                                }
    786786                        }
     
    830830                                addName(15, new Font("Arial", Font.BOLD, 60), Symbols.Mline, new Delta(Handle.LC, AffineTransform.getTranslateInstance(70, 0)));
    831831                                ArrayList<StsSTS> sts = (ArrayList<StsSTS>) getAttList(Obj.ACHARE, Att.STATUS);
    832                                 if ((Renderer.zoom >= 15) && (sts.contains(StsSTS.STS_RESV))) {
     832                                if (Renderer.zoom >= 15 && sts.contains(StsSTS.STS_RESV)) {
    833833                                        Renderer.labelText("Reserved", new Font("Arial", Font.PLAIN, 50), Symbols.Mline, new Delta(Handle.TC, AffineTransform.getTranslateInstance(0, 60)));
    834834                                }
     
    923923                switch (feature.type) {
    924924                case ROADWY:
    925                         ArrayList<CatROD> cat = (ArrayList<CatROD>) (getAttList(Obj.ROADWY, Att.CATROD));
     925                        ArrayList<CatROD> cat = (ArrayList<CatROD>) getAttList(Obj.ROADWY, Att.CATROD);
    926926                        if (cat.size() > 0) {
    927927                                switch (cat.get(0)) {
     
    10181018                                AttMap topmap = feature.objs.get(Obj.TOPMAR).get(0);
    10191019                                if (topmap.containsKey(Att.TOPSHP)) {
    1020                                         Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.TOPMAR), Topmarks.LightDelta);
     1020                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.TOPMAR), Topmarks.LightDelta);
    10211021                                }
    10221022                        } else if (feature.objs.containsKey(Obj.DAYMAR)) {
    10231023                                AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0);
    10241024                                if (topmap.containsKey(Att.TOPSHP)) {
    1025                                         Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.DAYMAR), Topmarks.LightDelta);
     1025                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.DAYMAR), Topmarks.LightDelta);
    10261026                                }
    10271027                        }
     
    11081108                                for (AttMap atts : objs.values()) {
    11091109                                        if (atts.get(Att.MARSYS) != null)
    1110                                                 sys = ((ArrayList<MarSYS>) (atts.get(Att.MARSYS).val)).get(0);
     1110                                                sys = ((ArrayList<MarSYS>) atts.get(Att.MARSYS).val).get(0);
    11111111                                        if (atts.get(Att.BNKWTW) != null)
    1112                                                 bnk = ((ArrayList<BnkWTW>) (atts.get(Att.BNKWTW).val)).get(0);
     1112                                                bnk = ((ArrayList<BnkWTW>) atts.get(Att.BNKWTW).val).get(0);
    11131113                                        CatNMK cat = CatNMK.NMK_UNKN;
    11141114                                        if (atts.get(Att.CATNMK) != null)
    1115                                                 cat = ((ArrayList<CatNMK>) (atts.get(Att.CATNMK).val)).get(0);
     1115                                                cat = ((ArrayList<CatNMK>) atts.get(Att.CATNMK).val).get(0);
    11161116                                        Symbol sym = Notices.getNotice(cat, sys, bnk);
    11171117                                        Scheme sch = Notices.getScheme(sys, bnk);
    11181118                                        ArrayList<AddMRK> add = new ArrayList<>();
    11191119                                        if (atts.get(Att.ADDMRK) != null)
    1120                                                 add = (ArrayList<AddMRK>) (atts.get(Att.ADDMRK).val);
     1120                                                add = (ArrayList<AddMRK>) atts.get(Att.ADDMRK).val;
    11211121                                        Handle h = Handle.CC;
    11221122                                        double ax = 0.0;
     
    12541254                                AttMap topmap = feature.objs.get(Obj.TOPMAR).get(0);
    12551255                                if (topmap.containsKey(Att.TOPSHP)) {
    1256                                         Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.TOPMAR), null);
     1256                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.TOPMAR), null);
    12571257                                }
    12581258                        } else if (feature.objs.containsKey(Obj.DAYMAR)) {
    12591259                                AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0);
    12601260                                if (topmap.containsKey(Att.TOPSHP)) {
    1261                                         Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), getScheme(Obj.DAYMAR), null);
     1261                                        Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) topmap.get(Att.TOPSHP).val).get(0)), getScheme(Obj.DAYMAR), null);
    12621262                                }
    12631263                        }
  • applications/editors/josm/plugins/seachart/src/render/Signals.java

    r34237 r34652  
    125125                        case BCNSAW:
    126126                        case BCNSPP:
    127                                 if ((feature.objs.containsKey(Obj.TOPMAR)) || (feature.objs.containsKey(Obj.DAYMAR))) {
     127                                if (feature.objs.containsKey(Obj.TOPMAR) || feature.objs.containsKey(Obj.DAYMAR)) {
    128128                                        Renderer.symbol(Topmarks.RadarReflector, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, -140)));
    129129                                } else {
     
    134134                        case LITVES:
    135135                        case BOYINB:
    136                                 if ((feature.objs.containsKey(Obj.TOPMAR)) || (feature.objs.containsKey(Obj.DAYMAR))) {
     136                                if (feature.objs.containsKey(Obj.TOPMAR) || feature.objs.containsKey(Obj.DAYMAR)) {
    137137                                        Renderer.symbol(Topmarks.RadarReflector, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, -110)));
    138138                                } else {
     
    142142                        case LITMAJ:
    143143                        case LITMIN:
    144                                 if ((feature.objs.containsKey(Obj.TOPMAR)) || (feature.objs.containsKey(Obj.DAYMAR))) {
     144                                if (feature.objs.containsKey(Obj.TOPMAR) || feature.objs.containsKey(Obj.DAYMAR)) {
    145145                                        Renderer.symbol(Topmarks.RadarReflector, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, -90)));
    146146                                } else {
     
    153153                        case BOYSAW:
    154154                        case BOYSPP:
    155                                 if ((feature.objs.containsKey(Obj.TOPMAR)) || (feature.objs.containsKey(Obj.DAYMAR))) {
     155                                if (feature.objs.containsKey(Obj.TOPMAR) || feature.objs.containsKey(Obj.DAYMAR)) {
    156156                                        if (testAttribute(feature.type, Att.BOYSHP, BoySHP.BOY_PILR) || testAttribute(feature.type, Att.BOYSHP, BoySHP.BOY_SPAR)) {
    157157                                                Renderer.symbol(Topmarks.RadarReflector, new Delta(Handle.BC, AffineTransform.getTranslateInstance(50, -160)));
     
    181181                                String str = "";
    182182                                if (atts.containsKey(Att.CATFOG)) {
    183                                         str += fogSignals.get(((ArrayList<?>) (atts.get(Att.CATFOG).val)).get(0));
     183                                        str += fogSignals.get(((ArrayList<?>) atts.get(Att.CATFOG).val).get(0));
    184184                                }
    185185                                if (atts.containsKey(Att.SIGGRP)) {
     
    440440                                                                                continue;
    441441                                                                        if (srad == radius) {
    442                                                                                 ArrayList<CatLIT> scats = (ArrayList<CatLIT>) ((satts.containsKey(Att.CATLIT)) ? (ArrayList<CatLIT>) satts.get(Att.CATLIT).val : new ArrayList<>());
     442                                                                                ArrayList<CatLIT> scats = (ArrayList<CatLIT>) (satts.containsKey(Att.CATLIT) ? (ArrayList<CatLIT>) satts.get(Att.CATLIT).val : new ArrayList<>());
    443443                                                                                if (scats.contains(CatLIT.LIT_DIR)) {
    444444                                                                                        if (satts.containsKey(Att.ORIENT)) {
     
    557557                                                for (ArrayList<LitSect> group : groupings) {
    558558                                                        LitSect mem = group.get(0);
    559                                                         if ((lit.dir == mem.dir) && (lit.chr == mem.chr) && (lit.grp.equals(mem.grp)) && (lit.per == mem.per) && (lit.hgt == mem.hgt)) {
     559                                                        if (lit.dir == mem.dir && lit.chr == mem.chr && lit.grp.equals(mem.grp) && lit.per == mem.per && lit.hgt == mem.hgt) {
    560560                                                                group.add(lit);
    561561                                                                found = true;
     
    616616                                                }
    617617                                                LitSect tmp = group.get(0);
    618                                                 str = (tmp.dir) ? "Dir" : "";
     618                                                str = tmp.dir ? "Dir" : "";
    619619                                                str += LightCharacters.get(tmp.chr);
    620620                                                if (!tmp.grp.isEmpty())
     
    645645                                                cats = (ArrayList<CatLIT>) atts.get(Att.CATLIT).val;
    646646                                        }
    647                                         str = (cats.contains(CatLIT.LIT_DIR)) ? "Dir" : "";
    648                                         str += (atts.containsKey(Att.MLTYLT)) ? atts.get(Att.MLTYLT).val : "";
     647                                        str = cats.contains(CatLIT.LIT_DIR) ? "Dir" : "";
     648                                        str += atts.containsKey(Att.MLTYLT) ? atts.get(Att.MLTYLT).val : "";
    649649                                        if (atts.containsKey(Att.LITCHR)) {
    650650                                                LitCHR chr = ((ArrayList<LitCHR>) atts.get(Att.LITCHR).val).get(0);
     
    680680                                                }
    681681                                        }
    682                                         str += (cats.contains(CatLIT.LIT_VERT)) ? "(vert)" : "";
    683                                         str += (cats.contains(CatLIT.LIT_HORI)) ? "(hor)" : "";
     682                                        str += cats.contains(CatLIT.LIT_VERT) ? "(vert)" : "";
     683                                        str += cats.contains(CatLIT.LIT_HORI) ? "(hor)" : "";
    684684                                        str += (!str.isEmpty() && (atts.containsKey(Att.SIGPER) || atts.containsKey(Att.HEIGHT) || atts.containsKey(Att.VALMXR)) && !str.endsWith(")")) ? "." : "";
    685                                         str += (atts.containsKey(Att.SIGPER)) ? df.format(atts.get(Att.SIGPER).val) + "s" : "";
    686                                         str += (atts.containsKey(Att.HEIGHT)) ? df.format(atts.get(Att.HEIGHT).val) + "m" : "";
    687                                         str += (atts.containsKey(Att.VALNMR)) ? df.format(atts.get(Att.VALNMR).val) + "M" : "";
    688                                         str += (cats.contains(CatLIT.LIT_FRNT)) ? "(Front)" : "";
    689                                         str += (cats.contains(CatLIT.LIT_REAR)) ? "(Rear)" : "";
    690                                         str += (cats.contains(CatLIT.LIT_UPPR)) ? "(Upper)" : "";
    691                                         str += (cats.contains(CatLIT.LIT_LOWR)) ? "(Lower)" : "";
     685                                        str += atts.containsKey(Att.SIGPER) ? df.format(atts.get(Att.SIGPER).val) + "s" : "";
     686                                        str += atts.containsKey(Att.HEIGHT) ? df.format(atts.get(Att.HEIGHT).val) + "m" : "";
     687                                        str += atts.containsKey(Att.VALNMR) ? df.format(atts.get(Att.VALNMR).val) + "M" : "";
     688                                        str += cats.contains(CatLIT.LIT_FRNT) ? "(Front)" : "";
     689                                        str += cats.contains(CatLIT.LIT_REAR) ? "(Rear)" : "";
     690                                        str += cats.contains(CatLIT.LIT_UPPR) ? "(Upper)" : "";
     691                                        str += cats.contains(CatLIT.LIT_LOWR) ? "(Lower)" : "";
    692692                                        Renderer.labelText(str, new Font("Arial", Font.PLAIN, 40), Color.black, new Delta(Handle.TL, AffineTransform.getTranslateInstance(60, -30)));
    693693                                }
  • applications/editors/josm/plugins/seachart/src/s57/S57map.java

    r32909 r34652  
    908908                            first = false;
    909909                        } else {
    910                             sarc += (Math.acos(Math.cos(lon - llon) * Math.cos(lat - llat)));
     910                            sarc += Math.acos(Math.cos(lon - llon) * Math.cos(lat - llat));
    911911                        }
    912912                        llat = lat;
     
    931931                            first = false;
    932932                        } else {
    933                             sarc = (Math.acos(Math.cos(lon - llon) * Math.cos(lat - llat)));
     933                            sarc = Math.acos(Math.cos(lon - llon) * Math.cos(lat - llat));
    934934                            if (sarc > harc)
    935935                                break;
  • applications/editors/josm/plugins/seachart/src/s57/S57obj.java

    r32907 r34652  
    163163
    164164    public static Obj enumType(String type) { // Convert OSM object string to SCM object enumeration
    165         if ((type != null) && !type.isEmpty() && (StrObj.containsKey(type)))
     165        if (type != null && !type.isEmpty() && StrObj.containsKey(type))
    166166            return StrObj.get(type);
    167167        else
  • applications/editors/josm/plugins/seachart/src/s57/S57osm.java

    r33724 r34652  
    99import s57.S57map.Snode;
    1010import s57.S57obj.Obj;
    11 import s57.S57val.CatBUA;
    1211import s57.S57val.CatROD;
    1312import s57.S57val.Conv;
     
    131130                    }
    132131                } else {
    133                     if ((inNode || inWay || inRel) && (ln.contains("<tag"))) {
     132                    if ((inNode || inWay || inRel) && ln.contains("<tag")) {
    134133                        k = v = "";
    135134                        String[] token = ln.split("k=");
     
    205204                                    ref = Long.parseLong(token.split("[\"\']")[1]);
    206205                                } else if (token.matches("^type=.+")) {
    207                                     type = (token.split("[\"\']")[1]);
     206                                    type = token.split("[\"\']")[1];
    208207                                } else if (token.matches("^role=.+")) {
    209208                                    String[] str = token.split("[\"\']");
    210209                                    if (str.length > 1) {
    211                                         role = (token.split("[\"\']")[1]);
     210                                        role = token.split("[\"\']")[1];
    212211                                    }
    213212                                }
  • applications/editors/josm/plugins/seachart/src/s57/S57val.java

    r33936 r34652  
    16541654
    16551655    public static Enum<?> unknAtt(Att att) {
    1656         return (Enum<?>) (keys.get(att).map.keySet().toArray()[0]);
     1656        return (Enum<?>) keys.get(att).map.keySet().toArray()[0];
    16571657    }
    16581658}
  • applications/editors/josm/plugins/seachart/src/seachart/SeachartAction.java

    r34098 r34652  
    203203                    map.addEdge(way.getUniqueId());
    204204                    for (Node node : way.getNodes()) {
    205                         map.addToEdge((node.getUniqueId()));
     205                        map.addToEdge(node.getUniqueId());
    206206                    }
    207207                    for (Entry<String, String> entry : way.getKeys().entrySet()) {
     
    216216                    for (RelationMember mem : rel.getMembers()) {
    217217                        if (mem.getType() == OsmPrimitiveType.WAY)
    218                             map.addToArea(mem.getUniqueId(), (mem.getRole().equals("outer")));
     218                            map.addToArea(mem.getUniqueId(), mem.getRole().equals("outer"));
    219219                    }
    220220                    for (Entry<String, String> entry : rel.getKeys().entrySet()) {
  • applications/editors/josm/plugins/seachart/src/symbols/Symbols.java

    r32907 r34652  
    186186        if (cs != null) {
    187187            if ((cs.pat.size() > 0) && (cs.col.size() > 0) && (cs.pat.get(0) == Patt.B)) {
    188                 bpat = (cs.pat.remove(0));
    189                 bcol = (cs.col.remove(0));
     188                bpat = cs.pat.remove(0);
     189                bcol = cs.col.remove(0);
    190190            }
    191191            pn = cs.pat.size();
Note: See TracChangeset for help on using the changeset viewer.