Ignore:
Timestamp:
2016-12-08T00:54:43+01:00 (9 years ago)
Author:
Don-vip
Message:

findbugs - SIC_INNER_SHOULD_BE_STATIC_ANON

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportAudioAction.java

    r10647 r11366  
    4141    private final transient GpxLayer layer;
    4242
     43    static final class AudioFileFilter extends FileFilter {
     44        @Override
     45        public boolean accept(File f) {
     46            return f.isDirectory() || Utils.hasExtension(f, "wav");
     47        }
     48
     49        @Override
     50        public String getDescription() {
     51            return tr("Wave Audio files (*.wav)");
     52        }
     53    }
     54
    4355    private static class Markers {
    4456        public boolean timedMarkersOmitted;
     
    7082            return;
    7183        }
    72         FileFilter filter = new FileFilter() {
    73             @Override
    74             public boolean accept(File f) {
    75                 return f.isDirectory() || Utils.hasExtension(f, "wav");
    76             }
    77 
    78             @Override
    79             public String getDescription() {
    80                 return tr("Wave Audio files (*.wav)");
    81             }
    82         };
    83         AbstractFileChooser fc = DiskAccessAction.createAndOpenFileChooser(true, true, null, filter,
     84        AbstractFileChooser fc = DiskAccessAction.createAndOpenFileChooser(true, true, null, new AudioFileFilter(),
    8485                JFileChooser.FILES_ONLY, "markers.lastaudiodirectory");
    8586        if (fc != null) {
Note: See TracChangeset for help on using the changeset viewer.