Add missing @Override annotations

PR #3978 <https://github.com/Genymobile/scrcpy/pull/3978>
novideo
Romain Vimont 1 year ago
parent 9c08eb79cb
commit 751a3653a0

@ -114,6 +114,7 @@ public final class AudioEncoder implements AsyncProcessor {
}
}
@Override
public void start() {
thread = new Thread(() -> {
try {
@ -129,6 +130,7 @@ public final class AudioEncoder implements AsyncProcessor {
thread.start();
}
@Override
public void stop() {
if (thread != null) {
// Just wake up the blocking wait from the thread, so that it properly releases all its resources and terminates
@ -136,6 +138,7 @@ public final class AudioEncoder implements AsyncProcessor {
}
}
@Override
public void join() throws InterruptedException {
if (thread != null) {
thread.join();

@ -53,6 +53,7 @@ public final class AudioRawRecorder implements AsyncProcessor {
}
}
@Override
public void start() {
thread = new Thread(() -> {
try {
@ -68,12 +69,14 @@ public final class AudioRawRecorder implements AsyncProcessor {
thread.start();
}
@Override
public void stop() {
if (thread != null) {
thread.interrupt();
}
}
@Override
public void join() throws InterruptedException {
if (thread != null) {
thread.join();

@ -84,6 +84,7 @@ public class Controller implements AsyncProcessor {
}
}
@Override
public void start() {
thread = new Thread(() -> {
try {
@ -98,6 +99,7 @@ public class Controller implements AsyncProcessor {
sender.start();
}
@Override
public void stop() {
if (thread != null) {
thread.interrupt();
@ -105,6 +107,7 @@ public class Controller implements AsyncProcessor {
sender.stop();
}
@Override
public void join() throws InterruptedException {
if (thread != null) {
thread.join();

Loading…
Cancel
Save