Changeset 11402 in josm for trunk


Ignore:
Timestamp:
2016-12-15T07:31:46+01:00 (3 years ago)
Author:
Don-vip
Message:

sonar - squid:ClassVariableVisibilityCheck - Class variable fields should not have public accessibility

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java

    r11376 r11402  
    9898
    9999    public static class Multipolygon {
    100         public Way outerWay;
    101         public List<Way> innerWays;
    102 
     100        private final Way outerWay;
     101        private final List<Way> innerWays;
     102
     103        /**
     104         * Constructs a new {@code Multipolygon}.
     105         * @param way outer way
     106         */
    103107        public Multipolygon(Way way) {
    104108            outerWay = way;
    105109            innerWays = new ArrayList<>();
     110        }
     111
     112        /**
     113         * Returns the outer way.
     114         * @return the outer way
     115         */
     116        public final Way getOuterWay() {
     117            return outerWay;
     118        }
     119
     120        /**
     121         * Returns the inner ways.
     122         * @return the inner ways
     123         */
     124        public final List<Way> getInnerWays() {
     125            return innerWays;
    106126        }
    107127    }
     
    12391259    /**
    12401260     * Joins the lists of ways.
    1241      * @param polygon The list of outer ways that belong to that multigon.
     1261     * @param polygon The list of outer ways that belong to that multipolygon.
    12421262     * @return The newly created outer way
    12431263     * @throws UserCancelException if user cancels the operation
  • trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java

    r11376 r11402  
    113113                if (result.hasChanges()) {
    114114                    for (Multipolygon mp : result.getPolygons()) {
    115                         optimizedWays.add(mp.outerWay);
     115                        optimizedWays.add(mp.getOuterWay());
    116116                    }
    117117                }
Note: See TracChangeset for help on using the changeset viewer.