Skip to content

Commit

Permalink
forbidden-apis: Allow System.exit() be called in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
centic9 committed Nov 29, 2020
1 parent 25efdb2 commit 58e5491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/dstadler/audio/example/ExamplePlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.dstadler.audio.player.AudioPlayer;
import org.dstadler.audio.player.AudioSPIPlayer;
import org.dstadler.commons.logging.jdk.LoggerFactory;
import org.dstadler.commons.util.SuppressForbidden;

import java.io.BufferedInputStream;
import java.io.IOException;
Expand All @@ -28,6 +29,7 @@ public class ExamplePlayer {

private static volatile boolean shouldStop = false;

@SuppressForbidden(reason = "Uses System.exit()")
public static void main(String[] args) throws IOException, InterruptedException {
if (args.length != 1) {
System.err.println("Usage: ExamplePlayer <url>");
Expand Down

0 comments on commit 58e5491

Please sign in to comment.