Ignore:
Timestamp:
2017-04-16T20:54:54+02:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S1941 - Variables should not be declared before they are relevant

File:
1 edited

Legend:

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

    r11797 r11932  
    7979
    8080    private static NodeElement create(Environment env, float defaultMajorZindex, boolean allowDefault) {
    81         Cascade c = env.mc.getCascade(env.layer);
    82 
    8381        MapImage mapImage = createIcon(env);
    8482        Symbol symbol = null;
     
    8785        }
    8886
    89         RotationAngle rotationAngle = createRotationAngle(env);
    90 
    9187        // optimization: if we neither have a symbol, nor a mapImage
    9288        // we don't have to check for the remaining style properties and we don't
     
    9490        if (!allowDefault && symbol == null && mapImage == null) return null;
    9591
     92        Cascade c = env.mc.getCascade(env.layer);
     93        RotationAngle rotationAngle = createRotationAngle(env);
    9694        return new NodeElement(c, mapImage, symbol, defaultMajorZindex, rotationAngle);
    9795    }
Note: See TracChangeset for help on using the changeset viewer.