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

[josm_plugins] fix Java 7 / unused code warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java

    r30532 r30737  
    358358            return;
    359359
    360         Set<Relation> relations = new TreeSet<Relation>(
     360        Set<Relation> relations = new TreeSet<>(
    361361                DefaultNameFormatter.getInstance().getRelationComparator());
    362362        for( OsmPrimitive element : newSelection ) {
     
    415415
    416416    private static Map<String, List<String>> loadRoles() {
    417         Map<String, List<String>> result = new HashMap<String, List<String>>();
     417        Map<String, List<String>> result = new HashMap<>();
    418418        try {
    419419            ClassLoader classLoader = RelContextDialog.class.getClassLoader();
     
    425425                if( t.hasMoreTokens() ) {
    426426                    String type = t.nextToken();
    427                     List<String> roles = new ArrayList<String>();
     427                    List<String> roles = new ArrayList<>();
    428428                    while( t.hasMoreTokens() )
    429429                        roles.add(t.nextToken());
     
    442442        JPanel panel = new JPanel(new GridBagLayout());
    443443
    444         List<String> items = new ArrayList<String>();
     444        List<String> items = new ArrayList<>();
    445445        for( String role : roleBoxModel.getRoles() ) {
    446446            if( role.length() > 1 )
     
    527527            Collection<OsmPrimitive> selected = Main.main.getCurrentDataSet().getSelected();
    528528            Relation r = chosenRelation.get();
    529             List<Command> commands = new ArrayList<Command>();
     529            List<Command> commands = new ArrayList<>();
    530530            for( int i = 0; i < r.getMembersCount(); i++ ) {
    531531                RelationMember m = r.getMember(i);
     
    623623       
    624624    private class RoleComboBoxModel extends AbstractListModel<String> implements ComboBoxModel<String> {
    625         private List<String> roles = new ArrayList<String>();
     625        private List<String> roles = new ArrayList<>();
    626626        private int selectedIndex = -1;
    627627        private JComboBox<String> combobox;
     
    646646                combobox.setEnabled(true);
    647647
    648             List<String> items = new ArrayList<String>();
     648            List<String> items = new ArrayList<>();
    649649            if( chosenRelation != null && chosenRelation.get() != null ) {
    650650                if( chosenRelation.isMultipolygon() ) {
Note: See TracChangeset for help on using the changeset viewer.