Changeset 9413 in josm


Ignore:
Timestamp:
2016-01-11T19:01:35+01:00 (4 years ago)
Author:
stoecker
Message:

fix 3 Coverity defects

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/BuildProjectionDefinitions.java

    r9357 r9413  
    6666            out.write("## This file is autogenerated, do not edit!\n");
    6767            out.write("## Run ant task \"epsg\" to rebuild.\n");
    68             out.write(String.format("## Source files are %s (can be changed) and %s (copied from the proj.4 project).\n", JOSM_EPSG_FILE, PROJ4_EPSG_FILE));
     68            out.write(String.format("## Source files are %s (can be changed) and %s (copied from the proj.4 project).%n", JOSM_EPSG_FILE, PROJ4_EPSG_FILE));
    6969            out.write("##\n");
    7070            out.write("## Entries checked and maintained by the JOSM team:\n");
  • trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java

    r9303 r9413  
    3535        if (!isEnabled())
    3636            return;
    37         boolean saved = doSave();
     37        doSave();
    3838    }
    3939
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r9262 r9413  
    11421142        @Override
    11431143        public void showMenu(MouseEvent evt) {
    1144             Layer layer = getModel().getLayer(layerList.getSelectedRow());
    11451144            menu = new LayerListPopup(getModel().getSelectedLayers());
    11461145            super.showMenu(evt);
Note: See TracChangeset for help on using the changeset viewer.