Changeset 11710 in josm


Ignore:
Timestamp:
2017-03-09T22:53:57+01:00 (6 weeks ago)
Author:
bastiK
Message:

see #12731 - make enum field final + fix compiler warning

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r11709 r11710  
    123123        BLOCKED("never");
    124124
    125         String xml_flag;
     125        final String xml_flag;
    126126
    127127        private UploadPolicy(String xml_flag) {
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r11709 r11710  
    989989    public final void setUploadDiscouraged(boolean uploadDiscouraged) {
    990990        if (data.getUploadPolicy() != UploadPolicy.BLOCKED &&
    991                 uploadDiscouraged ^ isUploadDiscouraged()) {
     991                (uploadDiscouraged ^ isUploadDiscouraged())) {
    992992            data.setUploadPolicy(uploadDiscouraged ? UploadPolicy.DISCOURAGED : UploadPolicy.NORMAL);
    993993            for (LayerStateChangeListener l : layerStateChangeListeners) {
Note: See TracChangeset for help on using the changeset viewer.