Ignore:
Timestamp:
2020-02-22T19:40:25+01:00 (4 years ago)
Author:
simon04
Message:

see #18749 - Intern strings to reduce memory footprint

File:
1 edited

Legend:

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

    r15900 r15902  
    331331                    try {
    332332                        final String val = ai.val instanceof Expression
    333                                 ? Optional.ofNullable(((Expression) ai.val).evaluate(new Environment())).map(Object::toString).orElse(null)
     333                                ? Optional.ofNullable(((Expression) ai.val).evaluate(new Environment()))
     334                                        .map(Object::toString).map(String::intern).orElse(null)
    334335                                : ai.val instanceof String
    335336                                ? (String) ai.val
Note: See TracChangeset for help on using the changeset viewer.