Changeset 9067 in josm for trunk/src/org


Ignore:
Timestamp:
2015-11-28T18:26:23+01:00 (9 years ago)
Author:
Don-vip
Message:

sonar - Immutable Field

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

Legend:

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

    r8308 r9067  
    1919 */
    2020public class ChangesetManagerToggleAction extends ToggleAction {
    21     private transient WindowListener changesetCacheManagerClosedHandler;
     21    private final transient WindowListener changesetCacheManagerClosedHandler;
    2222
    2323    /**
  • trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java

    r8919 r9067  
    463463        }
    464464
    465         private Set<NodePair> edges;
     465        private final Set<NodePair> edges;
    466466        private int numUndirectedEges;
    467467        private Map<Node, List<NodePair>> successors;
  • trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java

    r9062 r9067  
    102102     */
    103103    private static class PolarNode {
    104         private double a;
    105         private Node node;
     104        private final double a;
     105        private final Node node;
    106106
    107107        PolarNode(EastNorth center, Node n) {
  • trunk/src/org/openstreetmap/josm/actions/FullscreenToggleAction.java

    r8510 r9067  
    2828 */
    2929public class FullscreenToggleAction extends ToggleAction {
    30     private transient GraphicsDevice gd;
     30    private final transient GraphicsDevice gd;
    3131    private Rectangle prevBounds;
    3232
  • trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java

    r9062 r9067  
    190190
    191191        /** Set of {@link WayInPolygon} to be joined by walk algorithm */
    192         private Set<WayInPolygon> availableWays;
     192        private final Set<WayInPolygon> availableWays;
    193193        /** Current state of walk algorithm */
    194194        private WayInPolygon lastWay;
  • trunk/src/org/openstreetmap/josm/actions/JoinNodeWayAction.java

    r8510 r9067  
    181181
    182182        private final EastNorth refPoint;
    183         private EastNorth refPoint2;
     183        private final EastNorth refPoint2;
    184184        private final boolean projectToSegment;
    185185
  • trunk/src/org/openstreetmap/josm/actions/MoveAction.java

    r8510 r9067  
    2929    public enum Direction { UP, LEFT, RIGHT, DOWN }
    3030
    31     private Direction myDirection;
     31    private final Direction myDirection;
    3232
    3333    // any better idea?
  • trunk/src/org/openstreetmap/josm/actions/RenameLayerAction.java

    r8510 r9067  
    2828public class RenameLayerAction extends AbstractAction {
    2929
    30     private File file;
    31     private transient Layer layer;
     30    private final File file;
     31    private final transient Layer layer;
    3232
    3333    /**
  • trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java

    r8919 r9067  
    3232
    3333    public static class ReverseWayResult {
    34         private Way newWay;
    35         private Collection<Command> tagCorrectionCommands;
    36         private Command reverseCommand;
     34        private final Way newWay;
     35        private final Collection<Command> tagCorrectionCommands;
     36        private final Command reverseCommand;
    3737
    3838        public ReverseWayResult(Way newWay, Collection<Command> tagCorrectionCommands, Command reverseCommand) {
  • trunk/src/org/openstreetmap/josm/actions/ToggleUploadDiscouragedLayerAction.java

    r8308 r9067  
    1111public class ToggleUploadDiscouragedLayerAction extends JosmAction {
    1212
    13     private transient OsmDataLayer layer;
     13    private final transient OsmDataLayer layer;
    1414
    1515    public ToggleUploadDiscouragedLayerAction(OsmDataLayer layer) {
  • trunk/src/org/openstreetmap/josm/actions/UploadSelectionAction.java

    r9062 r9067  
    259259        private boolean canceled;
    260260        private Exception lastException;
    261         private Collection<OsmPrimitive> toUpload;
    262         private OsmDataLayer layer;
     261        private final Collection<OsmPrimitive> toUpload;
     262        private final OsmDataLayer layer;
    263263        private OsmServerBackreferenceReader reader;
    264264
  • trunk/src/org/openstreetmap/josm/actions/ValidateAction.java

    r8855 r9067  
    112112    static class ValidationTask extends PleaseWaitRunnable {
    113113        private Collection<Test> tests;
    114         private Collection<OsmPrimitive> validatedPrimitives;
    115         private Collection<OsmPrimitive> formerValidatedPrimitives;
     114        private final Collection<OsmPrimitive> validatedPrimitives;
     115        private final Collection<OsmPrimitive> formerValidatedPrimitives;
    116116        private boolean canceled;
    117117        private List<TestError> errors;
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/AbstractDownloadTask.java

    r8908 r9067  
    1313 */
    1414public abstract class AbstractDownloadTask<T> implements DownloadTask {
    15     private List<Object> errorMessages;
     15    private final List<Object> errorMessages;
    1616    private boolean canceled;
    1717    private boolean failed;
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java

    r8908 r9067  
    9898
    9999    class DownloadTask extends PleaseWaitRunnable {
    100         private OsmServerReader reader;
     100        private final OsmServerReader reader;
    101101        private GpxData rawData;
    102102        private final boolean newLayer;
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskList.java

    r8836 r9067  
    4444 */
    4545public class DownloadTaskList {
    46     private List<DownloadTask> tasks = new LinkedList<>();
    47     private List<Future<?>> taskFutures = new LinkedList<>();
     46    private final List<DownloadTask> tasks = new LinkedList<>();
     47    private final List<Future<?>> taskFutures = new LinkedList<>();
    4848    private ProgressMonitor progressMonitor;
    4949
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/PostDownloadHandler.java

    r8510 r9067  
    2121
    2222public class PostDownloadHandler implements Runnable {
    23     private DownloadTask task;
    24     private List<Future<?>> futures;
     23    private final DownloadTask task;
     24    private final List<Future<?>> futures;
    2525
    2626    /**
  • trunk/src/org/openstreetmap/josm/actions/mapmode/AddNoteAction.java

    r9062 r9067  
    2727public class AddNoteAction extends MapMode implements KeyPressReleaseListener {
    2828
    29     private transient NoteData noteData;
     29    private final transient NoteData noteData;
    3030
    3131    /**
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r9062 r9067  
    14081408        private JCheckBoxMenuItem checkBox;
    14091409
    1410         private MouseListener anglePopupListener = new PopupMenuLauncher(new AnglePopupMenu()) {
     1410        private final MouseListener anglePopupListener = new PopupMenuLauncher(new AnglePopupMenu()) {
    14111411            @Override
    14121412            public void mouseClicked(MouseEvent e) {
  • trunk/src/org/openstreetmap/josm/actions/mapmode/PlayHeadDragMode.java

    r8840 r9067  
    2323    private Point mousePos;
    2424    private Point mouseStart;
    25     private transient PlayHeadMarker playHeadMarker;
     25    private final transient PlayHeadMarker playHeadMarker;
    2626
    2727    /**
  • trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

    r9062 r9067  
    10201020    }
    10211021
    1022     private transient CycleManager cycleManager = new CycleManager();
    1023     private transient VirtualManager virtualManager = new VirtualManager();
     1022    private final transient CycleManager cycleManager = new CycleManager();
     1023    private final transient VirtualManager virtualManager = new VirtualManager();
    10241024
    10251025    private class CycleManager {
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r9021 r9067  
    6565public class SearchCompiler {
    6666
    67     private boolean caseSensitive;
    68     private boolean regexSearch;
     67    private final boolean caseSensitive;
     68    private final boolean regexSearch;
    6969    private static String  rxErrorMsg = marktr("The regex \"{0}\" had a parse error at offset {1}, full error:\n\n{2}");
    7070    private static String  rxErrorMsgNoPos = marktr("The regex \"{0}\" had a parse error, full error:\n\n{1}");
    71     private PushbackTokenizer tokenizer;
     71    private final PushbackTokenizer tokenizer;
    7272    private static Map<String, SimpleMatchFactory> simpleMatchFactoryMap = new HashMap<>();
    7373    private static Map<String, UnaryMatchFactory> unaryMatchFactoryMap = new HashMap<>();
     
    109109
    110110    public class CoreSimpleMatchFactory implements SimpleMatchFactory {
    111         private Collection<String> keywords = Arrays.asList("id", "version", "type", "user", "role",
     111        private final Collection<String> keywords = Arrays.asList("id", "version", "type", "user", "role",
    112112                "changeset", "nodes", "ways", "tags", "areasize", "waylength", "modified", "selected",
    113113                "incomplete", "untagged", "closed", "new", "indownloadedarea",
  • trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java

    r8512 r9067  
    3030     * List of checks to run on data
    3131     */
    32     private List<FixData> deprecated = new LinkedList<>();
     32    private final List<FixData> deprecated = new LinkedList<>();
    3333
    3434    /**
     
    107107    public static class FixDataKey implements FixData {
    108108        /** key of wrong data */
    109         private String oldKey;
     109        private final String oldKey;
    110110        /** key of correct data */
    111         private String newKey;
     111        private final String newKey;
    112112
    113113        /**
     
    141141    public static class FixDataTag implements FixData {
    142142        /** key of wrong data */
    143         private String oldKey;
     143        private final String oldKey;
    144144        /** value of wrong data */
    145         private String oldValue;
     145        private final String oldValue;
    146146        /** key of correct data */
    147         private String newKey;
     147        private final String newKey;
    148148        /** value of correct data */
    149         private String newValue;
     149        private final String newValue;
    150150
    151151        /**
  • trunk/src/org/openstreetmap/josm/actions/upload/UploadNotesTask.java

    r8840 r9067  
    4040
    4141        private boolean isCanceled;
    42         private Map<Note, Note> updatedNotes = new HashMap<>();
    43         private Map<Note, Exception> failedNotes = new HashMap<>();
     42        private final Map<Note, Note> updatedNotes = new HashMap<>();
     43        private final Map<Note, Exception> failedNotes = new HashMap<>();
    4444
    4545        /**
  • trunk/src/org/openstreetmap/josm/command/ChangeRelationMemberRoleCommand.java

    r8456 r9067  
    2525    private final Relation relation;
    2626    // Position of the member
    27     private int position = -1;
     27    private final int position;
    2828    // The new role
    2929    private final String newRole;
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r8549 r9067  
    5151     * List of all old states of the objects.
    5252     */
    53     private List<OldNodeState> oldState = new LinkedList<>();
     53    private final List<OldNodeState> oldState = new LinkedList<>();
    5454
    5555    /**
  • trunk/src/org/openstreetmap/josm/command/RotateCommand.java

    r8931 r9067  
    2020     * Pivot point
    2121     */
    22     private EastNorth pivot;
     22    private final EastNorth pivot;
    2323
    2424    /**
    2525     * angle of rotation starting click to pivot
    2626     */
    27     private double startAngle;
     27    private final double startAngle;
    2828
    2929    /**
  • trunk/src/org/openstreetmap/josm/command/ScaleCommand.java

    r8840 r9067  
    1414     * Pivot point
    1515     */
    16     private EastNorth pivot;
     16    private final EastNorth pivot;
    1717
    1818    /**
     
    2424     * World position of the mouse when the user started the command.
    2525     */
    26     private EastNorth startEN;
     26    private final EastNorth startEN;
    2727
    2828    /**
  • trunk/src/org/openstreetmap/josm/corrector/CorrectionTableModel.java

    r8510 r9067  
    1111public abstract class CorrectionTableModel<C extends Correction> extends AbstractTableModel {
    1212
    13     private transient List<C> corrections;
     13    private final transient List<C> corrections;
    1414    private boolean[] apply;
    15     private int applyColumn;
     15    private final int applyColumn;
    1616
    1717    public CorrectionTableModel(List<C> corrections) {
  • trunk/src/org/openstreetmap/josm/corrector/TagCorrector.java

    r9062 r9067  
    4646    public abstract Collection<Command> execute(P oldprimitive, P primitive) throws UserCancelException;
    4747
    48     private String[] applicationOptions = new String[] {
     48    private final String[] applicationOptions = new String[] {
    4949            tr("Apply selected changes"),
    5050            tr("Do not apply changes"),
  • trunk/src/org/openstreetmap/josm/data/APIDataSet.java

    r8856 r9067  
    270270     */
    271271    private static class RelationUploadDependencyGraph {
    272         private Map<Relation, Set<Relation>> children = new HashMap<>();
     272        private final Map<Relation, Set<Relation>> children = new HashMap<>();
    273273        private Collection<Relation> relations;
    274274        private Set<Relation> visited = new HashSet<>();
  • trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java

    r8870 r9067  
    423423
    424424        private Preferences mainPrefs;
    425         private Map<String, Element> tasksMap = new HashMap<>();
     425        private final Map<String, Element> tasksMap = new HashMap<>();
    426426
    427427        private boolean lastV; // last If condition result
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r8926 r9067  
    17271727
    17281728    private class SettingToXml implements SettingVisitor {
    1729         private StringBuilder b;
    1730         private boolean noPassword;
     1729        private final StringBuilder b;
     1730        private final boolean noPassword;
    17311731        private String key;
    17321732
  • trunk/src/org/openstreetmap/josm/data/conflict/ConflictCollection.java

    r9059 r9067  
    4040public class ConflictCollection implements Iterable<Conflict<? extends OsmPrimitive>> {
    4141    private final List<Conflict<? extends OsmPrimitive>> conflicts;
    42     private CopyOnWriteArrayList<IConflictListener> listeners;
     42    private final CopyOnWriteArrayList<IConflictListener> listeners;
    4343
    4444    private static class FilterPredicate implements Predicate<Conflict<? extends OsmPrimitive>> {
  • trunk/src/org/openstreetmap/josm/data/imagery/CachedTileLoaderFactory.java

    r8624 r9067  
    2727     */
    2828    public static final StringProperty PROP_TILECACHE_DIR = getTileCacheDir();
    29     private ICacheAccess<String, BufferedImageCacheEntry> cache;
     29    private final ICacheAccess<String, BufferedImageCacheEntry> cache;
    3030    private Constructor<? extends TileLoader> tileLoaderConstructor;
    3131
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java

    r8846 r9067  
    4242    private static final long MAXIMUM_EXPIRES = 30 /*days*/ * 24 /*hours*/ * 60 /*minutes*/ * 60 /*seconds*/ *1000L /*milliseconds*/;
    4343    private static final long MINIMUM_EXPIRES = 1 /*hour*/ * 60 /*minutes*/ * 60 /*seconds*/ *1000L /*milliseconds*/;
    44     private Tile tile;
     44    private final Tile tile;
    4545    private volatile URL url;
    4646
  • trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java

    r9059 r9067  
    1212public class NoteComment {
    1313
    14     private String text;
    15     private User user;
    16     private Date commentTimestamp;
    17     private Action action;
     14    private final String text;
     15    private final User user;
     16    private final Date commentTimestamp;
     17    private final Action action;
    1818
    1919    //not currently used. I'm planning on using this to keep track of new actions that need to be uploaded
  • trunk/src/org/openstreetmap/josm/data/oauth/OAuthToken.java

    r8291 r9067  
    22package org.openstreetmap.josm.data.oauth;
    33
     4import org.openstreetmap.josm.tools.CheckParameterUtil;
     5
    46import oauth.signpost.OAuthConsumer;
    5 
    6 import org.openstreetmap.josm.tools.CheckParameterUtil;
    77
    88public class OAuthToken {
     
    1818    }
    1919
    20     private String key;
    21     private String secret;
     20    private final String key;
     21    private final String secret;
    2222
    2323    /**
  • trunk/src/org/openstreetmap/josm/data/osm/ChangesetDataSet.java

    r8836 r9067  
    153153
    154154    private static class DefaultChangesetDataSetEntry implements ChangesetDataSetEntry {
    155         private ChangesetModificationType modificationType;
    156         private HistoryOsmPrimitive primitive;
     155        private final ChangesetModificationType modificationType;
     156        private final HistoryOsmPrimitive primitive;
    157157
    158158        DefaultChangesetDataSetEntry(ChangesetModificationType modificationType, HistoryOsmPrimitive primitive) {
     
    173173
    174174    private class DefaultIterator implements Iterator<ChangesetDataSetEntry> {
    175         private Iterator<Entry<PrimitiveId, ChangesetModificationType>> typeIterator;
     175        private final Iterator<Entry<PrimitiveId, ChangesetModificationType>> typeIterator;
    176176
    177177        DefaultIterator() {
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r8870 r9067  
    233233    }
    234234
    235     /*
     235    /**
    236236     * Holding bin for changeset tag information, to be applied when or if this is ever uploaded.
    237237     */
    238     private Map<String, String> changeSetTags = new HashMap<>();
     238    private final Map<String, String> changeSetTags = new HashMap<>();
    239239
    240240    /**
  • trunk/src/org/openstreetmap/josm/data/osm/RelationToChildReference.java

    r8510 r9067  
    4242    }
    4343
    44     private Relation parent;
    45     private int position;
    46     private String role;
    47     private OsmPrimitive child;
     44    private final Relation parent;
     45    private final int position;
     46    private final String role;
     47    private final OsmPrimitive child;
    4848
    4949    public RelationToChildReference(Relation parent, int position, String role, OsmPrimitive child) {
  • trunk/src/org/openstreetmap/josm/data/osm/Storage.java

    r9059 r9067  
    9090    private int size;
    9191    private volatile int modCount;
    92     private double loadFactor = 0.6d;
     92    private final double loadFactor = 0.6d;
    9393    private static final int DEFAULT_CAPACITY = 16;
    9494    private final boolean safeIterator;
     
    363363
    364364    private final class FMap<K> implements Map<K, T> {
    365         private Hash<K, ? super T> fHash;
     365        private final Hash<K, ? super T> fHash;
    366366
    367367        private FMap(Hash<K, ? super T> h) {
  • trunk/src/org/openstreetmap/josm/data/osm/history/History.java

    r8512 r9067  
    3636
    3737    /** the list of object snapshots */
    38     private List<HistoryOsmPrimitive> versions;
     38    private final List<HistoryOsmPrimitive> versions;
    3939    /** the object id */
    4040    private final long id;
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryDataSet.java

    r9059 r9067  
    4545
    4646    /** the history data */
    47     private Map<PrimitiveId, ArrayList<HistoryOsmPrimitive>> data;
    48     private CopyOnWriteArrayList<HistoryDataSetListener> listeners;
    49     private Map<Long, Changeset> changesets;
     47    private final Map<PrimitiveId, ArrayList<HistoryOsmPrimitive>> data;
     48    private final CopyOnWriteArrayList<HistoryDataSetListener> listeners;
     49    private final Map<Long, Changeset> changesets;
    5050
    5151    /**
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryRelation.java

    r9059 r9067  
    2121public class HistoryRelation extends HistoryOsmPrimitive {
    2222
    23     private List<RelationMemberData> members = new ArrayList<>();
     23    private final List<RelationMemberData> members = new ArrayList<>();
    2424
    2525    /**
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryWay.java

    r8510 r9067  
    2121public class HistoryWay extends HistoryOsmPrimitive {
    2222
    23     private List<Long> nodeIds = new ArrayList<>();
     23    private final List<Long> nodeIds = new ArrayList<>();
    2424
    2525    /**
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/MergeSourceBuildingVisitor.java

    r8510 r9067  
    3232 */
    3333public class MergeSourceBuildingVisitor extends AbstractVisitor {
    34     private DataSet selectionBase;
    35     private DataSet hull;
    36     private Map<OsmPrimitive, PrimitiveData> mappedPrimitives;
     34    private final DataSet selectionBase;
     35    private final DataSet hull;
     36    private final Map<OsmPrimitive, PrimitiveData> mappedPrimitives;
    3737
    3838    /**
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java

    r8958 r9067  
    6060
    6161    public static class Descriptor {
    62         private Class<? extends AbstractMapRenderer> renderer;
    63         private String displayName;
    64         private String description;
     62        private final Class<? extends AbstractMapRenderer> renderer;
     63        private final String displayName;
     64        private final String description;
    6565
    6666        public Descriptor(Class<? extends AbstractMapRenderer> renderer, String displayName, String description) {
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java

    r8870 r9067  
    9090
    9191    /** Helper variable for {@link #visit(Relation)} */
    92     private Stroke relatedWayStroke = new BasicStroke(
     92    private final Stroke relatedWayStroke = new BasicStroke(
    9393            4, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL);
    9494
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java

    r8840 r9067  
    3535
    3636    private NTV2GridShiftFile instance;
    37     private String gridFileName;
     37    private final String gridFileName;
    3838
    3939    /**
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java

    r8870 r9067  
    4141    private static final long serialVersionUID = 1L;
    4242
    43     private String subGridName;
    44     private String parentSubGridName;
    45     private String created;
    46     private String updated;
    47     private double minLat;
    48     private double maxLat;
    49     private double minLon;
    50     private double maxLon;
    51     private double latInterval;
    52     private double lonInterval;
    53     private int nodeCount;
    54 
    55     private int lonColumnCount;
    56     private int latRowCount;
    57     private float[] latShift;
    58     private float[] lonShift;
     43    private final String subGridName;
     44    private final String parentSubGridName;
     45    private final String created;
     46    private final String updated;
     47    private final double minLat;
     48    private final double maxLat;
     49    private final double minLon;
     50    private final double maxLon;
     51    private final double latInterval;
     52    private final double lonInterval;
     53    private final int nodeCount;
     54
     55    private final int lonColumnCount;
     56    private final int latRowCount;
     57    private final float[] latShift;
     58    private final float[] lonShift;
    5959    private float[] latAccuracy;
    6060    private float[] lonAccuracy;
  • trunk/src/org/openstreetmap/josm/data/projection/proj/ClassProjFactory.java

    r7937 r9067  
    77public class ClassProjFactory implements ProjFactory {
    88
    9     private Class<? extends Proj> projClass;
     9    private final Class<? extends Proj> projClass;
    1010
    1111    public ClassProjFactory(Class<? extends Proj> projClass) {
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java

    r8846 r9067  
    4444    private static class NodeHash implements Hash<Object, Object> {
    4545
    46         private double precision = Main.pref.getDouble("validator.duplicatenodes.precision", 0.);
     46        private final double precision = Main.pref.getDouble("validator.duplicatenodes.precision", 0.);
    4747
    4848        private LatLon roundCoord(LatLon coor) {
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateRelation.java

    r8850 r9067  
    3939    public static class RelMember {
    4040        /** Role of the relation member */
    41         private String role;
     41        private final String role;
    4242
    4343        /** Type of the relation member */
    44         private OsmPrimitiveType type;
     44        private final OsmPrimitiveType type;
    4545
    4646        /** Tags of the relation member */
     
    103103    private static class RelationMembers {
    104104        /** List of member objects of the relation */
    105         private List<RelMember> members;
     105        private final List<RelMember> members;
    106106
    107107        /** Store relation information
     
    133133    private static class RelationPair {
    134134        /** Member objects of the relation */
    135         private RelationMembers members;
     135        private final RelationMembers members;
    136136        /** Tags of the relation */
    137         private Map<String, String> keys;
     137        private final Map<String, String> keys;
    138138
    139139        /** Store relation information
  • trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java

    r8846 r9067  
    4141    private MultiMap<Way, Way> errorWays;
    4242
    43     private List<NormalizeRule> rules = new ArrayList<NormalizeRule>();
     43    private final List<NormalizeRule> rules = new ArrayList<NormalizeRule>();
    4444
    4545    /**
Note: See TracChangeset for help on using the changeset viewer.