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

[josm_plugins] fix Java 7 / unused code warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogPanel.java

    r30701 r30737  
    2020/**
    2121 * NanoLog Panel. Displays the selected log item, along with surrounding 30-50 lines.
    22  * 
     22 *
    2323 * @author zverik
    2424 */
     
    2626    private JList<String> logPanel;
    2727    private LogListModel listModel;
    28    
     28
    2929    public NanoLogPanel() {
    3030        super(tr("NanoLog"), "nanolog", tr("Open NanoLog panel"), null, 150, false);
    31        
     31
    3232        listModel = new LogListModel();
    33         logPanel = new JList<String>(listModel);
     33        logPanel = new JList<>(listModel);
    3434        createLayout(logPanel, true, null);
    3535    }
    3636
    3737    public void updateMarkers() {
    38         List<NanoLogEntry> entries = new ArrayList<NanoLogEntry>();
     38        List<NanoLogEntry> entries = new ArrayList<>();
    3939        for( NanoLogLayer l : Main.map.mapView.getLayersOfType(NanoLogLayer.class) ) {
    4040            entries.addAll(l.getEntries());
     
    7474        }
    7575    }
    76    
     76
    7777    private class LogListModel extends AbstractListModel<String> {
    7878        private List<NanoLogEntry> entries;
    7979        private final SimpleDateFormat TIME_FORMAT = new SimpleDateFormat("HH:mm:ss");
    8080
    81         public int getSize() {
     81        @Override
     82                public int getSize() {
    8283            return entries.size();
    8384        }
    8485
    85         public String getElementAt( int index ) {
     86        @Override
     87                public String getElementAt( int index ) {
    8688            return TIME_FORMAT.format(entries.get(index).getTime()) + " " + entries.get(index).getMessage();
    8789        }
Note: See TracChangeset for help on using the changeset viewer.