Ignore:
Timestamp:
2010-01-13T19:55:07+01:00 (14 years ago)
Author:
mjulius
Message:

fix messages for data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitiveType.java

    r2512 r2845  
    22package org.openstreetmap.josm.data.osm;
    33import static org.openstreetmap.josm.tools.I18n.tr;
     4
     5import java.text.MessageFormat;
    46
    57public enum OsmPrimitiveType {
     
    3537            if (type.getAPIName().equals(typeName)) return type;
    3638        }
    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));
    3840    }
    3941
     
    4648        if (cls.equals(Way.class)) return WAY;
    4749        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()));
    4951    }
    5052
     
    5355        if (cls.equals(WayData.class)) return WAY;
    5456        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()));
    5658    }
    5759
Note: See TracChangeset for help on using the changeset viewer.