- Timestamp:
- 2017-03-14T19:27:54+01:00 (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/combinations.mapcss
r11687 r11732 337 337 338 338 /* #9593, #11183, #12418, #12761 */ 339 *[sport][sport!=skiing][!building][!club][tourism != hotel][highway != raceway][leisure !~ /^(sports_centre|stadium|track|pitch|golf_course|water_park|swimming_pool|recreation_ground|ice_rink|horse_riding|fitness_station|bowling_alley)$/][natural !~ /^(beach|bare_rock|cliff|peak|water)$/][amenity !~ /^(pub|restaurant|swimming_pool)$/][landuse !~ /^(recreation_ground|piste|farm|farmland)$/][barrier !~ /^(wall|retaining_wall)$/][!"piste:type"][shop!=sports] { 339 *[sport][sport!=skiing][!building][!club][tourism != hotel][highway != raceway][leisure !~ /^(sports_centre|stadium|track|pitch|golf_course|water_park|swimming_pool|recreation_ground|ice_rink|horse_riding|fitness_centre|fitness_station|bowling_alley)$/][natural !~ /^(beach|bare_rock|cliff|peak|water)$/][amenity !~ /^(pub|restaurant|swimming_pool)$/][landuse !~ /^(recreation_ground|piste|farm|farmland)$/][barrier !~ /^(wall|retaining_wall)$/][!"piste:type"][shop!=sports] { 340 340 throwWarning: tr("sport without physical feature"); 341 341 group: tr("missing tag"); -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r11721 r11732 1512 1512 public static double clamp(double val, double min, double max) { 1513 1513 if (min > max) { 1514 throw new IllegalArgumentException(MessageFormat.format("Parameter min ({0}) cannot be great her than max ({1})", min, max));1514 throw new IllegalArgumentException(MessageFormat.format("Parameter min ({0}) cannot be greater than max ({1})", min, max)); 1515 1515 } else if (val < min) { 1516 1516 return min; … … 1533 1533 public static int clamp(int val, int min, int max) { 1534 1534 if (min > max) { 1535 throw new IllegalArgumentException(MessageFormat.format("Parameter min ({0}) cannot be great her than max ({1})", min, max));1535 throw new IllegalArgumentException(MessageFormat.format("Parameter min ({0}) cannot be greater than max ({1})", min, max)); 1536 1536 } else if (val < min) { 1537 1537 return min;
Note:
See TracChangeset
for help on using the changeset viewer.