Changeset 10300 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2016-05-30T01:17:28+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/AutosaveTask.java
r10299 r10300 171 171 while (true) { 172 172 String filename = String.format("%1$s_%2$tY%2$tm%2$td_%2$tH%2$tM%2$tS%2$tL%3$s", 173 layer.layerFileName, now, index == 0 ? "" : ( "_" + index));173 layer.layerFileName, now, index == 0 ? "" : ('_' + Integer.toString(index))); 174 174 File result = new File(autosaveDir, filename + '.' + Main.pref.get("autosave.extension", "osm")); 175 175 try { -
trunk/src/org/openstreetmap/josm/data/ProjectionBounds.java
r9419 r10300 106 106 @Override 107 107 public String toString() { 108 return "ProjectionBounds["+minEast+ ","+minNorth+","+maxEast+","+maxNorth+']';108 return "ProjectionBounds["+minEast+','+minNorth+','+maxEast+','+maxNorth+']'; 109 109 } 110 110 -
trunk/src/org/openstreetmap/josm/data/Version.java
r9407 r10300 191 191 s += " SVN"; 192 192 } 193 String result = "JOSM/1.5 ("+ s+' '+LanguageInfo.getJOSMLocaleCode()+ ")";193 String result = "JOSM/1.5 ("+ s+' '+LanguageInfo.getJOSMLocaleCode()+')'; 194 194 if (includeOsDetails && Main.platform != null) { 195 195 result += ' ' + Main.platform.getOSDescription(); -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r10212 r10300 863 863 public String getExtendedUrl() { 864 864 return imageryType.getTypeString() + (defaultMaxZoom != 0 865 ? "["+(defaultMinZoom != 0 ? Integer.toString(defaultMinZoom) + ',' : "")+defaultMaxZoom+"]": "") + ':' + url;865 ? ('['+(defaultMinZoom != 0 ? (Integer.toString(defaultMinZoom) + ',') : "")+defaultMaxZoom+"]") : "") + ':' + url; 866 866 } 867 867 -
trunk/src/org/openstreetmap/josm/data/notes/Note.java
r10134 r10300 148 148 @Override 149 149 public String toString() { 150 return tr("Note") + " "+ id + ": " + getFirstComment();150 return tr("Note") + ' ' + id + ": " + getFirstComment(); 151 151 } 152 152 } -
trunk/src/org/openstreetmap/josm/data/osm/SimplePrimitiveId.java
r9371 r10300 57 57 @Override 58 58 public String toString() { 59 return type + " "+ id;59 return type.toString() + ' ' + id; 60 60 } 61 61 -
trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
r10298 r10300 1815 1815 case '\uFF0E': // fullwidth full stop 1816 1816 case '\uFF61': // halfwidth ideographic full stop 1817 return ascii + "."; // restore the missing stop1817 return ascii + '.'; // restore the missing stop 1818 1818 default: 1819 1819 return ascii; -
trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java
r8680 r10300 104 104 // <restriction-value> @ <condition>[;<restriction-value> @ <condition>] 105 105 final List<ConditionalValue> r = new ArrayList<>(); 106 final Patternpart = Pattern.compile("([^@\\p{Space}][^@]*?)"107 + "\\s*@\\s*" + "(\\([^)\\p{Space}][^)]+?\\)|[^();\\p{Space}][^();]*?)\\s*") ;108 final Matcher m = Pattern.compile( "("+ part + ")(;\\s*" + part + ")*").matcher(value);106 final String part = Pattern.compile("([^@\\p{Space}][^@]*?)" 107 + "\\s*@\\s*" + "(\\([^)\\p{Space}][^)]+?\\)|[^();\\p{Space}][^();]*?)\\s*").toString(); 108 final Matcher m = Pattern.compile('(' + part + ")(;\\s*" + part + ")*").matcher(value); 109 109 if (!m.matches()) { 110 110 throw new ConditionalParsingException(tr("Does not match pattern ''restriction value @ condition''"));
Note:
See TracChangeset
for help on using the changeset viewer.