Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - use diamond operator where applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java

    r6990 r7005  
    4949    private static DefaultNameFormatter instance;
    5050
    51     private static final List<NameFormatterHook> formatHooks = new LinkedList<NameFormatterHook>();
     51    private static final List<NameFormatterHook> formatHooks = new LinkedList<>();
    5252
    5353    /**
     
    108108    public static List<String> getNamingtagsForRelations() {
    109109        if (namingTagsForRelations == null) {
    110             namingTagsForRelations = new ArrayList<String>(
     110            namingTagsForRelations = new ArrayList<>(
    111111                    Main.pref.getCollection("relation.nameOrder", Arrays.asList(DEFAULT_NAMING_TAGS_FOR_RELATIONS))
    112112                    );
     
    498498        .append(primitive.getId())
    499499        .append("<br>");
    500         List<String> keyList = new ArrayList<String>(primitive.keySet());
     500        List<String> keyList = new ArrayList<>(primitive.keySet());
    501501        Collections.sort(keyList);
    502502        for (int i = 0; i < keyList.size(); i++) {
     
    629629        sb.append(" (");
    630630        String nameTag = null;
    631         Set<String> namingTags = new HashSet<String>(getNamingtagsForRelations());
     631        Set<String> namingTags = new HashSet<>(getNamingtagsForRelations());
    632632        for (String n : relation.getTags().keySet()) {
    633633            // #3328: "note " and " note" are name tags too
     
    671671        .append(primitive.getId())
    672672        .append("<br>");
    673         List<String> keyList = new ArrayList<String>(primitive.getTags().keySet());
     673        List<String> keyList = new ArrayList<>(primitive.getTags().keySet());
    674674        Collections.sort(keyList);
    675675        for (int i = 0; i < keyList.size(); i++) {
Note: See TracChangeset for help on using the changeset viewer.