Ignore:
Timestamp:
2016-09-05T23:50:16+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1226 - Method parameters, caught exceptions and foreach variables should not be reassigned

File:
1 edited

Legend:

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

    r10940 r10965  
    803803
    804804        protected static Method getMethod(String id) {
    805             id = id.replaceAll("-|_", "");
     805            String cleanId = id.replaceAll("-|_", "");
    806806            for (Method method : PseudoClasses.class.getDeclaredMethods()) {
    807807                // for backwards compatibility, consider :sameTags == :same-tags == :same_tags (#11150)
    808808                final String methodName = method.getName().replaceAll("-|_", "");
    809                 if (methodName.equalsIgnoreCase(id)) {
     809                if (methodName.equalsIgnoreCase(cleanId)) {
    810810                    return method;
    811811                }
Note: See TracChangeset for help on using the changeset viewer.