Ignore:
Timestamp:
2015-10-09T02:12:45+02:00 (10 years ago)
Author:
Don-vip
Message:

sonar - squid:S3052 - Fields should not be initialized to default values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java

    r8836 r8840  
    8181    }
    8282
    83     private static int auto_increment_selected = 0;
     83    private static int auto_increment_selected;
    8484    /** Translatation of "<different>". Use in combo boxes to display en entry matching several different values. */
    8585    public static final String DIFFERENT = tr("<different>");
     
    189189        public SearchCompiler.Match memberExpression;
    190190
    191         public boolean required = false;
    192         private long count = 0;
     191        public boolean required;
     192        private long count;
    193193
    194194        public void setType(String types) throws SAXException {
     
    307307    public static class Usage {
    308308        private SortedSet<String> values;
    309         private boolean hadKeys = false;
    310         private boolean hadEmpty = false;
     309        private boolean hadKeys;
     310        private boolean hadEmpty;
    311311
    312312        public boolean hasUniqueValue() {
     
    885885        public String value_off = OsmUtils.falseval;
    886886        /** whether the off value is disabled in the dialog, i.e., only unset or yes are provided */
    887         public boolean disable_off = false;
     887        public boolean disable_off;
    888888        /** "on" or "off" or unset (default is unset) */
    889         public String default_ = null; // only used for tagless objects
     889        public String default_; // only used for tagless objects
    890890
    891891        private QuadStateCheckBox check;
     
    10101010        protected JComponent component;
    10111011        protected final Map<String, PresetListEntry> lhm = new LinkedHashMap<>();
    1012         private boolean initialized = false;
     1012        private boolean initialized;
    10131013        protected Usage usage;
    10141014        protected Object originalValue;
Note: See TracChangeset for help on using the changeset viewer.