Ignore:
Timestamp:
2015-12-02T00:05:09+01:00 (9 years ago)
Author:
Don-vip
Message:

sonar - Immutable Field

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/BoxTextElemStyle.java

    r8958 r9078  
    2626
    2727    public static class BoxProviderResult {
    28         private Rectangle box;
    29         private boolean temporary;
     28        private final Rectangle box;
     29        private final boolean temporary;
    3030
    3131        public BoxProviderResult(Rectangle box, boolean temporary) {
     
    5252
    5353    public static class SimpleBoxProvider implements BoxProvider {
    54         private Rectangle box;
     54        private final Rectangle box;
    5555
    5656        /**
  • trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java

    r8855 r9078  
    2424
    2525public class ElemStyles {
    26     private List<StyleSource> styleSources;
     26    private final List<StyleSource> styleSources;
    2727    private boolean drawMultipolygon;
    2828
  • trunk/src/org/openstreetmap/josm/gui/mappaint/LabelCompositionStrategy.java

    r8973 r9078  
    4848
    4949    public static class StaticLabelCompositionStrategy extends LabelCompositionStrategy {
    50         private String defaultLabel;
     50        private final String defaultLabel;
    5151
    5252        public StaticLabelCompositionStrategy(String defaultLabel) {
     
    9696    public static class TagLookupCompositionStrategy extends LabelCompositionStrategy {
    9797
    98         private String defaultLabelTag;
     98        private final String defaultLabelTag;
    9999
    100100        public TagLookupCompositionStrategy(String defaultLabelTag) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/LineTextElemStyle.java

    r8846 r9078  
    1212public class LineTextElemStyle extends ElemStyle {
    1313
    14     private TextElement text;
     14    private final TextElement text;
    1515
    1616    protected LineTextElemStyle(Cascade c, TextElement text) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java

    r8870 r9078  
    3131
    3232        private transient StyleSource style;
    33         private JCheckBoxMenuItem button;
     33        private final JCheckBoxMenuItem button;
    3434
    3535        MapPaintAction(StyleSource style) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r8937 r9078  
    343343    public static class MapPaintStyleLoader extends PleaseWaitRunnable {
    344344        private boolean canceled;
    345         private Collection<StyleSource> sources;
     345        private final Collection<StyleSource> sources;
    346346
    347347        public MapPaintStyleLoader(Collection<StyleSource> sources) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MultiCascade.java

    r8846 r9078  
    1616public class MultiCascade implements StyleKeys {
    1717
    18     private Map<String, Cascade> layers;
     18    private final Map<String, Cascade> layers;
    1919    public Range range;
    2020
  • trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java

    r8575 r9078  
    4747     */
    4848    public static class StyleList implements Iterable<ElemStyle> {
    49         private List<ElemStyle> lst;
     49        private final List<ElemStyle> lst;
    5050
    5151        /**
  • trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java

    r8419 r9078  
    3333public abstract class StyleSource extends SourceEntry {
    3434
    35     private List<Throwable> errors = new ArrayList<>();
     35    private final List<Throwable> errors = new ArrayList<>();
    3636    public File zipIcons;
    3737
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java

    r9059 r9078  
    967967    public static class CondOperator implements Expression {
    968968
    969         private Expression condition, firstOption, secondOption;
     969        private final Expression condition, firstOption, secondOption;
    970970
    971971        /**
     
    996996    public static class AndOperator implements Expression {
    997997
    998         private List<Expression> args;
     998        private final List<Expression> args;
    999999
    10001000        /**
     
    10231023    public static class OrOperator implements Expression {
    10241024
    1025         private List<Expression> args;
     1025        private final List<Expression> args;
    10261026
    10271027        /**
     
    10551055    public static class LengthFunction implements Expression {
    10561056
    1057         private Expression arg;
     1057        private final Expression arg;
    10581058
    10591059        /**
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r9059 r9078  
    122122         */
    123123        private class MatchingReferrerFinder extends AbstractVisitor {
    124             private Environment e;
     124            private final Environment e;
    125125
    126126            /**
  • trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSourceHandler.java

    r8846 r9078  
    1717    private boolean inDoc, inRule, inCondition, inLine, inLineMod, inIcon, inArea, inScaleMax, inScaleMin;
    1818    private boolean hadLine, hadLineMod, hadIcon, hadArea;
    19     private RuleElem rule = new RuleElem();
    20 
    21     private XmlStyleSource style;
     19    private final RuleElem rule = new RuleElem();
     20
     21    private final XmlStyleSource style;
    2222
    2323    static class RuleElem {
    24         private XmlCondition cond = new XmlCondition();
     24        private final XmlCondition cond = new XmlCondition();
    2525        private Collection<XmlCondition> conditions;
    2626        private double scaleMax;
    2727        private double scaleMin;
    28         private LinePrototype line = new LinePrototype();
    29         private LinemodPrototype linemod = new LinemodPrototype();
    30         private AreaPrototype area = new AreaPrototype();
     28        private final LinePrototype line = new LinePrototype();
     29        private final LinemodPrototype linemod = new LinemodPrototype();
     30        private final AreaPrototype area = new AreaPrototype();
    3131        private IconPrototype icon = new IconPrototype();
    3232        public void init() {
Note: See TracChangeset for help on using the changeset viewer.