Ignore:
Timestamp:
2016-06-01T23:17:40+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1854 - Dead stores should be removed

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

Legend:

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

    r9341 r10308  
    281281                    if (!hasIndependentElemStyle && !multipolygon.getOuterWays().isEmpty()) {
    282282                        Color mpColor = null;
    283                         StyleElementList mpElemStyles = null;
     283                        StyleElementList mpElemStyles;
    284284                        synchronized (ref) {
    285285                            mpElemStyles = get(ref, scale, nc);
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java

    r8846 r10308  
    7171        @Override
    7272        public void execute(Environment env) {
    73             Object value = null;
     73            Object value;
    7474            if (val instanceof Expression) {
    7575                value = ((Expression) val).evaluate(env);
     
    8888        public String toString() {
    8989            return key + ": " + (val instanceof float[] ? Arrays.toString((float[]) val) :
    90                 val instanceof String ? "String<"+val+'>' : val) + ';';
     90                (val instanceof String ? ("String<"+val+'>') : val)) + ';';
    9191        }
    9292    }
Note: See TracChangeset for help on using the changeset viewer.