Changeset 2845 in josm for trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitiveType.java
- Timestamp:
- 2010-01-13T19:55:07+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitiveType.java
r2512 r2845 2 2 package org.openstreetmap.josm.data.osm; 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 5 import java.text.MessageFormat; 4 6 5 7 public enum OsmPrimitiveType { … … 35 37 if (type.getAPIName().equals(typeName)) return type; 36 38 } 37 throw new IllegalArgumentException( tr("Parameter ''{0}'' is not a valid type name. Got ''{1}''.", "typeName", typeName));39 throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' is not a valid type name. Got ''{1}''.", "typeName", typeName)); 38 40 } 39 41 … … 46 48 if (cls.equals(Way.class)) return WAY; 47 49 if (cls.equals(Relation.class)) return RELATION; 48 throw new IllegalArgumentException( tr("Parameter ''{0}'' is not an acceptable class. Got ''{1}''.", "cls", cls.toString()));50 throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' is not an acceptable class. Got ''{1}''.", "cls", cls.toString())); 49 51 } 50 52 … … 53 55 if (cls.equals(WayData.class)) return WAY; 54 56 if (cls.equals(RelationData.class)) return RELATION; 55 throw new IllegalArgumentException( tr("Parameter ''{0}'' is not an acceptable class. Got ''{1}''.", "cls", cls.toString()));57 throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' is not an acceptable class. Got ''{1}''.", "cls", cls.toString())); 56 58 } 57 59
Note:
See TracChangeset
for help on using the changeset viewer.