Changeset 2181 in josm for trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
- Timestamp:
- 2009-09-22T15:34:19+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
r2070 r2181 38 38 public HistoryLoadTask add(long id, OsmPrimitiveType type) { 39 39 if (id <= 0) 40 throw new IllegalArgumentException(tr(" id > 0 expected, got {0}", id));40 throw new IllegalArgumentException(tr("ID > 0 expected. Got {0}.", id)); 41 41 if (type == null) 42 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "type"));42 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "type")); 43 43 if (!toLoad.containsKey(id)) { 44 44 toLoad.put(id, type); … … 49 49 public HistoryLoadTask add(HistoryOsmPrimitive primitive) { 50 50 if (primitive == null) 51 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "primitive"));51 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "primitive")); 52 52 if (!toLoad.containsKey(primitive.getId())) { 53 53 toLoad.put(primitive.getId(), primitive.getType()); … … 58 58 public HistoryLoadTask add(History history) { 59 59 if (history == null) 60 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "history"));60 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "history")); 61 61 if (!toLoad.containsKey(history.getId())) { 62 62 toLoad.put(history.getId(), history.getEarliest().getType()); … … 67 67 public HistoryLoadTask add(OsmPrimitive primitive) { 68 68 if (primitive == null) 69 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "primitive"));69 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "primitive")); 70 70 return add(primitive.getId(), OsmPrimitiveType.from(primitive)); 71 71 } … … 73 73 public HistoryLoadTask add(Collection<? extends OsmPrimitive> primitives) { 74 74 if (primitives == null) 75 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "primitives"));75 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "primitives")); 76 76 for (OsmPrimitive primitive: primitives) { 77 77 if (primitive == null) {
Note:
See TracChangeset
for help on using the changeset viewer.