Changeset 12413 in josm


Ignore:
Timestamp:
2017-06-18T01:22:50+02:00 (2 months ago)
Author:
Don-vip
Message:

fix some SonarQube issues

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/autofilter/AutoFilterManager.java

    r12407 r12413  
    6060     * Property to determines if the auto filter feature is enabled.
    6161     */
    62     public static final BooleanProperty PROP_AUTO_FILTER_ENABLED = new BooleanProperty("auto.filter.enabled", Boolean.TRUE);
     62    public static final BooleanProperty PROP_AUTO_FILTER_ENABLED = new BooleanProperty("auto.filter.enabled", true);
    6363
    6464    /**
  • trunk/src/org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java

    r12328 r12413  
    3636
    3737    private URL url;
    38     private Media media;
    3938    private MediaPlayer mediaPlayer;
    4039
     
    6968                    throw new FileNotFoundException(url.toString());
    7069                }
    71                 media = new Media(url.toString());
    72                 mediaPlayer = new MediaPlayer(media);
     70                mediaPlayer = new MediaPlayer(new Media(url.toString()));
    7371                mediaPlayer.setOnPlaying(() -> {
    7472                    listeners.fireEvent(l -> l.playing(url));
  • trunk/src/org/openstreetmap/josm/io/audio/JavaSoundPlayer.java

    r12328 r12413  
    3232    private AudioInputStream audioInputStream;
    3333    private SourceDataLine audioOutputLine;
    34     private AudioFormat audioFormat;
    3534
    3635    private final double leadIn; // seconds
     
    6766                throw new AudioException(e);
    6867            }
    69             audioFormat = audioInputStream.getFormat();
     68            AudioFormat audioFormat = audioInputStream.getFormat();
    7069            long nBytesRead;
    7170            position = 0.0;
Note: See TracChangeset for help on using the changeset viewer.