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

see #8465 - use diamond operator where applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/ToolbarPreferencesTest.java

    r3175 r7005  
    3131
    3232        public List<ActionParameter<?>> getActionParameters() {
    33             List<ActionParameter<?>> result = new ArrayList<ActionParameter<?>>();
     33            List<ActionParameter<?>> result = new ArrayList<>();
    3434            result.add(new StringActionParameter("param1"));
    3535            result.add(new StringActionParameter("param2"));
     
    4444
    4545    private void checkAction(ActionDefinition a, Object... params) {
    46         Map<String, Object> expected = new HashMap<String, Object>();
     46        Map<String, Object> expected = new HashMap<>();
    4747        for (int i=0; i<params.length; i+=2) {
    4848            expected.put((String)params[i], params[i+1]);
     
    5353    @Test
    5454    public void test1() {
    55         Map<String, Action> actions = new HashMap<String, Action>();
     55        Map<String, Action> actions = new HashMap<>();
    5656        actions.put("action", new TestAction());
    5757        ActionParser parser = new ActionParser(actions);
Note: See TracChangeset for help on using the changeset viewer.