Ignore:
Timestamp:
2013-07-26T17:24:33+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8902 - c-like array definitions changed to java-like (patch by shinigami)

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java

    r5863 r6085  
    4141        try {
    4242            if (map.containsKey("bbox")) {
    43                 String bbox[] = map.get("bbox").split(",");
     43                String[] bbox = map.get("bbox").split(",");
    4444                b = new Bounds(
    4545                        new LatLon(Double.parseDouble(bbox[1]), Double.parseDouble(bbox[0])),
  • trunk/src/org/openstreetmap/josm/tools/TextTagParser.java

    r5927 r6085  
    7171       
    7272        private String parseString(String stopChars) {
    73             char stop[] = stopChars.toCharArray();
     73            char[] stop = stopChars.toCharArray();
    7474            Arrays.sort(stop);
    7575            char c;
     
    159159     */
    160160    public static Map<String, String> readTagsByRegexp(String text, String splitRegex, String tagRegex, boolean unescapeTextInQuotes) {
    161          String lines[] = text.split(splitRegex);
     161         String[] lines = text.split(splitRegex);
    162162         Pattern p = Pattern.compile(tagRegex);
    163163         Map<String, String> tags = new HashMap<String,String>();
Note: See TracChangeset for help on using the changeset viewer.