Ignore:
Timestamp:
2016-07-29T22:15:28+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13239, fix #13240 - Java 8: MapCSS Condition class (patches by michael2402) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r10672 r10674  
    421421            try {
    422422                final Condition c = matchingSelector.getConditions().get(index);
    423                 final Tag tag = c instanceof Condition.KeyCondition
    424                         ? ((Condition.KeyCondition) c).asTag(p)
    425                         : c instanceof Condition.SimpleKeyValueCondition
    426                         ? ((Condition.SimpleKeyValueCondition) c).asTag()
    427                         : c instanceof Condition.KeyValueCondition
    428                         ? ((Condition.KeyValueCondition) c).asTag()
     423                final Tag tag = c instanceof Condition.ToTagConvertable
     424                        ? ((Condition.ToTagConvertable) c).asTag(p)
    429425                        : null;
    430426                if (tag == null) {
Note: See TracChangeset for help on using the changeset viewer.