Changeset 9978 in josm for trunk/src


Ignore:
Timestamp:
2016-03-13T00:48:12+01:00 (9 years ago)
Author:
Don-vip
Message:

sonar - remove useless initializations

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

Legend:

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

    r9966 r9978  
    153153     * Used to decide whether to write backup preference file in {@link #save()}
    154154     */
    155     protected boolean initSuccessful = false;
     155    protected boolean initSuccessful;
    156156
    157157    /**
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r9755 r9978  
    188188    private String countryCode = "";
    189189    /** mirrors of different type for this entry */
    190     private List<ImageryInfo> mirrors = null;
     190    private List<ImageryInfo> mirrors;
    191191    /** icon used in menu */
    192192    private String icon;
    193     private boolean isGeoreferenceValid = false;
    194     private boolean isEpsg4326To3857Supported = false;
     193    private boolean isGeoreferenceValid;
     194    private boolean isEpsg4326To3857Supported;
    195195    // when adding a field, also adapt the ImageryInfo(ImageryInfo)
    196196    // and ImageryInfo(ImageryPreferenceEntry) constructor, equals method, and ImageryPreferenceEntry
  • trunk/src/org/openstreetmap/josm/data/osm/TagMap.java

    r9969 r9978  
    3737         * Current tag index. Always a multiple of 2.
    3838         */
    39         private int currentIndex = 0;
     39        private int currentIndex;
    4040
    4141        /**
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r9952 r9978  
    267267
    268268    /* can be set by tests, if detailed benchmark data is requested */
    269     public BenchmarkData benchmarkData = null;
     269    public BenchmarkData benchmarkData;
    270270
    271271    private static Map<Font, Boolean> IS_GLYPH_VECTOR_DOUBLE_TRANSLATION_BUG = new HashMap<>();
  • trunk/src/org/openstreetmap/josm/data/preferences/PreferencesReader.java

    r9827 r9978  
    4242    private final SortedMap<String, Setting<?>> settings = new TreeMap<>();
    4343    private XMLStreamReader parser;
    44     private int version = 0;
     44    private int version;
    4545    private Reader reader;
    4646    private File file;
  • trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java

    r9962 r9978  
    15651565     * synchronized methods.
    15661566     */
    1567     private static boolean inUse = false;
     1567    private static boolean inUse;
    15681568
    15691569    /*
  • trunk/src/org/openstreetmap/josm/gui/MapStatus.java

    r9885 r9978  
    183183
    184184    /** The {@link CoordinateFormat} set in the previous update */
    185     private transient CoordinateFormat previousCoordinateFormat = null;
     185    private transient CoordinateFormat previousCoordinateFormat;
    186186    private final ImageLabel latText = new ImageLabel("lat",
    187187            null, LatLon.SOUTH_POLE.latToString(CoordinateFormat.DEGREES_MINUTES_SECONDS).length(), PROP_BACKGROUND_COLOR.get());
  • trunk/src/org/openstreetmap/josm/gui/layer/Layer.java

    r9949 r9978  
    138138     * This is set if user renamed this layer.
    139139     */
    140     private boolean renamed = false;
     140    private boolean renamed;
    141141
    142142    /**
  • trunk/src/org/openstreetmap/josm/gui/widgets/CompileSearchTextDecorator.java

    r8985 r9978  
    1919    private final JTextComponent textComponent;
    2020    private final String originalToolTipText;
    21     private SearchCompiler.Match filter = null;
     21    private SearchCompiler.Match filter;
    2222
    2323    private CompileSearchTextDecorator(JTextComponent textComponent) {
  • trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java

    r9687 r9978  
    3838    private final String curDir;
    3939
    40     private boolean multiple = false;
    41     private String title = null;
     40    private boolean multiple;
     41    private String title;
    4242    private Collection<? extends FileFilter> filters;
    4343    private FileFilter defaultFilter;
    4444    private int selectionMode = JFileChooser.FILES_ONLY;
    45     private String extension = null;
    46     private boolean allTypes = false;
    47     private File file = null;
     45    private String extension;
     46    private boolean allTypes;
     47    private File file;
    4848
    4949    private AbstractFileChooser fc;
  • trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java

    r9360 r9978  
    129129    private final class QuadStateDecorator implements ButtonModel {
    130130        private final ButtonModel other;
    131         private String propertyText = null;
     131        private String propertyText;
    132132
    133133        private QuadStateDecorator(ButtonModel other) {
Note: See TracChangeset for help on using the changeset viewer.