Changeset 11732 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-03-14T19:27:54+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.