Changeset 32543 in osm


Ignore:
Timestamp:
2016-07-03T12:23:25+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle

Location:
applications/editors/josm/plugins/buildings_tools
Files:
1 added
4 edited

Legend:

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

    r32286 r32543  
    1717                        </arguments>
    1818                </buildCommand>
     19                <buildCommand>
     20                        <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
     21                        <arguments>
     22                        </arguments>
     23                </buildCommand>
    1924        </buildSpec>
    2025        <natures>
    2126                <nature>org.eclipse.jdt.core.javanature</nature>
     27                <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
    2228        </natures>
    2329</projectDescription>
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java

    r32455 r32543  
    8080        len = 0;
    8181
    82         for (int i = 0; i < 4; i++)
     82        for (int i = 0; i < 4; i++) {
    8383            en[i] = null;
     84        }
    8485    }
    8586
     
    104105
    105106    /**
     107     * @param p
     108     *            The point to project
    106109     * @return Projection of the point to the heading vector in metres
    107      * @param p The point to project
    108110     */
    109111    private double projection1(EastNorth p) {
     
    113115
    114116    /**
     117     * @param p
     118     *            The point to project
    115119     * @return Projection of the point to the perpendicular of the heading
    116      *          vector in metres
    117      * @param p The point to project
     120     *         vector in metres
    118121     */
    119122    private double projection2(EastNorth p) {
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/DrawBuildingAction.java

    r32455 r32543  
    301301            if (w != null) {
    302302                if (!alt || ToolSettings.isUsingAddr())
    303                     for (Entry<String, String> kv : ToolSettings.getTags().entrySet())
     303                    for (Entry<String, String> kv : ToolSettings.getTags().entrySet()) {
    304304                        w.put(kv.getKey(), kv.getValue());
     305                    }
    305306                if (ToolSettings.isUsingAddr())
    306307                    showAddrDialog(w);
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/MergeAddrPointsAction.java

    r32455 r32543  
    6060        for (OsmPrimitive p : selection) {
    6161            if (p.getType() == OsmPrimitiveType.NODE) {
    62                 for (OsmPrimitive r : p.getReferrers())
     62                for (OsmPrimitive r : p.getReferrers()) {
    6363                    if (r.getType() == OsmPrimitiveType.WAY)
    6464                       continue scanSelection; // Don't use nodes if they're referenced by ways
    65                 for (String key : p.getKeys().keySet())
     65                }
     66                for (String key : p.getKeys().keySet()) {
    6667                    if (key.startsWith("addr:")) {
    67                         addrNodes.add((Node)p); // Found address node
     68                        addrNodes.add((Node) p); // Found address node
    6869                        break;
    6970                    }
     71                }
    7072            } else if (p.getType() == OsmPrimitiveType.WAY && p.getKeys().containsKey("building"))
    71                 buildings.add((Way)p);
     73                buildings.add((Way) p);
    7274        }
    7375        if (addrNodes.isEmpty()) {
     
    132134        }
    133135        if (multi != 0)
    134             new Notification(trn("There is {0} building with multiple address nodes inside", "There are {0} buildings with multiple address nodes inside", multi, multi))
     136            new Notification(trn("There is {0} building with multiple address nodes inside",
     137                    "There are {0} buildings with multiple address nodes inside", multi, multi))
    135138                    .setIcon(JOptionPane.WARNING_MESSAGE).show();
    136139        if (conflicts != 0)
    137             new Notification(trn("There is {0} building with address conflicts", "There are {0} buildings with address conflicts", conflicts, conflicts))
     140            new Notification(trn("There is {0} building with address conflicts",
     141                            "There are {0} buildings with address conflicts", conflicts, conflicts))
    138142                    .setIcon(JOptionPane.WARNING_MESSAGE).show();
    139143        if (cmds.isEmpty() && multi == 0 && conflicts == 0)
Note: See TracChangeset for help on using the changeset viewer.