Ignore:
Timestamp:
2014-02-07T01:34:02+01:00 (6 years ago)
Author:
bastiK
Message:

#8902 Small performance enhancements / coding style (patch by shinigami, parts)

patterns.diff: precompiled patterns
(only those parts applied, where performance may be relevant)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r6798 r6823  
    157157    private Map<String, String> parseParameterList(String pref) throws ProjectionConfigurationException {
    158158        Map<String, String> parameters = new HashMap<String, String>();
    159         String[] parts = pref.trim().split("\\s+");
     159        String[] parts = Utils.WHITE_SPACES_PATTERN.split(pref.trim());
    160160        if (pref.trim().isEmpty()) {
    161161            parts = new String[0];
Note: See TracChangeset for help on using the changeset viewer.