Changeset 6506 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2013-12-22T00:09:16+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/CheckParameterUtil.java
r6362 r6506 92 92 93 93 /** 94 * Ensures that the condition {@code condition} holds. 95 * @param condition The condition to check 96 * @throws IllegalArgumentException if the condition does not hold 97 */ 98 public static void ensureThat(boolean condition, String message) throws IllegalArgumentException { 99 if (!condition) 100 throw new IllegalArgumentException(message); 101 } 102 103 /** 94 104 * Ensures that <code>id</code> is non-null primitive id of type {@link OsmPrimitiveType#NODE} 95 105 *
Note:
See TracChangeset
for help on using the changeset viewer.
