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/print/src/org/openstreetmap/josm/plugins/print
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintDialog.java

    r30173 r30737  
    475475        PrintService service = job.getPrintService();
    476476        if (service != null) {
    477             Collection<Collection<String>> serviceAttributes = new ArrayList<Collection<String>>();
     477            Collection<Collection<String>> serviceAttributes = new ArrayList<>();
    478478            for (Attribute a : service.getAttributes().toArray()) {
    479479                if ("printer-name".equals(a.getName()) && a instanceof TextSyntax) {
     
    486486        // Save all request attributes
    487487        Collection<String> ignoredAttributes = Arrays.asList("media-printable-area");
    488         Collection<Collection<String>> requestAttributes = new ArrayList<Collection<String>>();
     488        Collection<Collection<String>> requestAttributes = new ArrayList<>();
    489489        for (Attribute a : attrs.toArray()) {
    490490            Collection<String> setting = null;
     
    507507   
    508508    protected Collection<String> marshallPrintSetting(Attribute a, Class<?> syntaxClass, String value) {
    509         return new ArrayList<String>(Arrays.asList(a.getCategory().getName(), a.getClass().getName(), syntaxClass.getName(), value));
     509        return new ArrayList<>(Arrays.asList(a.getCategory().getName(), a.getClass().getName(), syntaxClass.getName(), value));
    510510    }
    511511   
  • applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintableMapView.java

    r30409 r30737  
    412412    @Override
    413413    protected List<Layer> getVisibleLayersInZOrder() {
    414         ArrayList<Layer> layers = new ArrayList<Layer>();
     414        ArrayList<Layer> layers = new ArrayList<>();
    415415        for (Layer l: mapView.getAllLayersAsList()) {
    416416            if (l.isVisible()) {
Note: See TracChangeset for help on using the changeset viewer.