Ignore:
Timestamp:
2014-10-18T23:07:52+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix Java 7 / unused code warnings

Location:
applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/FullGraphCreationTest.java

    r23189 r30737  
    3535    static {
    3636        Map<VehiclePropertyType<?>, String> vehiclePropertyValues =
    37             new HashMap<VehiclePropertyType<?>, String>();
     37            new HashMap<>();
    3838        vehiclePropertyValues.put(VehiclePropertyTypes.WIDTH, "3.0");
    3939
     
    5656        }
    5757        public java.util.List<Implication> getImplications() {
    58             return new LinkedList<Implication>();
     58            return new LinkedList<>();
    5959        }
    6060    };
     
    162162    private TransitionStructure createTestTransitionStructure(TestDataSource dataSource) {
    163163
    164         LinkedList<RoadPropertyType<?>> properties = new LinkedList<RoadPropertyType<?>>();
     164        LinkedList<RoadPropertyType<?>> properties = new LinkedList<>();
    165165        properties.add(new RoadWidth());
    166166
    167         return new GenericTransitionStructure<TestNode, TestWay, TestRelation, TestRelationMember>(
     167        return new GenericTransitionStructure<>(
    168168                ACCESS_PARAMS, TEST_RULESET, dataSource, properties);
    169169    }
  • applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/TestDataSource.java

    r23189 r30737  
    1515
    1616    public static class TestPrimitive {
    17         public final Map<String, String> tags = new HashMap<String, String>();
     17        public final Map<String, String> tags = new HashMap<>();
    1818    };
    1919
     
    3535
    3636    public static class TestWay extends TestPrimitive {
    37         public final List<TestNode> nodes = new LinkedList<TestNode>();
     37        public final List<TestNode> nodes = new LinkedList<>();
    3838        @Override
    3939        public String toString() {
     
    4343
    4444    public static class TestRelation extends TestPrimitive {
    45         public final Collection<TestRelationMember> members = new LinkedList<TestRelationMember>();
     45        public final Collection<TestRelationMember> members = new LinkedList<>();
    4646        @Override
    4747        public String toString() {
     
    7070
    7171
    72     public final Collection<TestNode> nodes = new LinkedList<TestNode>();
    73     public final Collection<TestWay> ways = new LinkedList<TestWay>();
    74     public final Collection<TestRelation> relations = new LinkedList<TestRelation>();
     72    public final Collection<TestNode> nodes = new LinkedList<>();
     73    public final Collection<TestWay> ways = new LinkedList<>();
     74    public final Collection<TestRelation> relations = new LinkedList<>();
    7575
    7676
  • applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/access/AccessRulesetReaderTest.java

    r30559 r30737  
    101101
    102102    private static TagGroup createTagGroup(Tag... tags) {
    103         Map<String, String> tagMap = new HashMap<String, String>();
     103        Map<String, String> tagMap = new HashMap<>();
    104104        for (Tag tag : tags) {
    105105            tagMap.put(tag.key, tag.value);
  • applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/util/TagConditionLogicTest.java

    r30550 r30737  
    2020    @Before
    2121    public void setUp() {
    22         Map<String, String> mapA = new HashMap<String, String>();
     22        Map<String, String> mapA = new HashMap<>();
    2323        mapA.put("key1", "value1");
    2424        mapA.put("key2", "value2");
     
    2626        groupA = new MapBasedTagGroup(mapA);
    2727
    28         Map<String, String> mapB = new HashMap<String, String>();
     28        Map<String, String> mapB = new HashMap<>();
    2929        mapB.put("key1", "value1");
    3030        mapB.put("key4", "value4");
  • applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/visualisation/FloatPropertyColorSchemeTest.java

    r23189 r30737  
    1818    public void setUp() {
    1919
    20         Map<Float, Color> colorMap = new HashMap<Float, Color>();
     20        Map<Float, Color> colorMap = new HashMap<>();
    2121        colorMap.put( 5f, new Color( 42,  42,  42));
    2222        colorMap.put(10f, new Color(100, 100, 100));
Note: See TracChangeset for help on using the changeset viewer.