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/tools/Shortcut.java

    r6889 r7005  
    148148    // create a shortcut object from an string as saved in the preferences
    149149    private Shortcut(String prefString) {
    150         List<String> s = (new ArrayList<String>(Main.pref.getCollection(prefString)));
     150        List<String> s = (new ArrayList<>(Main.pref.getCollection(prefString)));
    151151        this.shortText = prefString.substring(15);
    152152        this.longText = s.get(0);
     
    232232
    233233    // here we store our shortcuts
    234     private static Map<String, Shortcut> shortcuts = new LinkedHashMap<String, Shortcut>();
     234    private static Map<String, Shortcut> shortcuts = new LinkedHashMap<>();
    235235
    236236    // and here our modifier groups
    237     private static Map<Integer, Integer> groups= new HashMap<Integer, Integer>();
     237    private static Map<Integer, Integer> groups= new HashMap<>();
    238238
    239239    // check if something collides with an existing shortcut
     
    252252     */
    253253    public static List<Shortcut> listAll() {
    254         List<Shortcut> l = new ArrayList<Shortcut>();
     254        List<Shortcut> l = new ArrayList<>();
    255255        for(Shortcut c : shortcuts.values())
    256256        {
     
    299299        Main.platform.initSystemShortcuts();
    300300        // (2) User defined shortcuts
    301         LinkedList<Shortcut> newshortcuts = new LinkedList<Shortcut>();
     301        LinkedList<Shortcut> newshortcuts = new LinkedList<>();
    302302        for(String s : Main.pref.getAllPrefixCollectionKeys("shortcut.entry.")) {
    303303            newshortcuts.add(new Shortcut(s));
Note: See TracChangeset for help on using the changeset viewer.