replace anonymous class with lambda expression.
parent
623090d43f
commit
be54b8302d
|
@ -19,13 +19,10 @@ public class SoundEffects {
|
|||
public static final String COMBAT_SOUND="combat.au";
|
||||
|
||||
private static final File SOUNDS_PATH = MagicFileSystem.getDataPath(DataPath.SOUNDS).toFile();
|
||||
private static final LineListener closer = new LineListener() {
|
||||
@Override
|
||||
public void update(final LineEvent event) {
|
||||
private static final LineListener closer = (event) -> {
|
||||
if (event.getType() == LineEvent.Type.STOP) {
|
||||
event.getLine().close();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private static Clip clip;
|
||||
|
|
Loading…
Reference in New Issue