mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 03:25:02 +00:00
fix: server checkstyle errors
Fix errors reported by: gradle -p server check
This commit is contained in:
parent
66c2e45ea9
commit
6cc9cfbed1
5 changed files with 4 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
|||
package com.genymobile.scrcpy;
|
||||
|
||||
import com.genymobile.scrcpy.wrappers.InputManager;
|
||||
import com.genymobile.scrcpy.wrappers.ServiceManager;
|
||||
|
||||
import android.graphics.Point;
|
||||
import android.os.SystemClock;
|
||||
|
|
|
@ -8,7 +8,7 @@ import java.io.FileDescriptor;
|
|||
import java.io.IOException;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
public class IO {
|
||||
public final class IO {
|
||||
private IO() {
|
||||
// not instantiable
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@ package com.genymobile.scrcpy;
|
|||
import com.genymobile.scrcpy.wrappers.SurfaceControl;
|
||||
|
||||
import android.graphics.Rect;
|
||||
import android.media.MediaMuxer;
|
||||
import android.media.MediaCodec;
|
||||
import android.media.MediaCodecInfo;
|
||||
import android.media.MediaFormat;
|
||||
|
|
|
@ -49,8 +49,9 @@ public final class Server {
|
|||
|
||||
@SuppressWarnings("checkstyle:MagicNumber")
|
||||
private static Options createOptions(String... args) {
|
||||
if (args.length != 5)
|
||||
if (args.length != 5) {
|
||||
throw new IllegalArgumentException("Expecting 5 parameters");
|
||||
}
|
||||
|
||||
Options options = new Options();
|
||||
|
||||
|
@ -73,6 +74,7 @@ public final class Server {
|
|||
return options;
|
||||
}
|
||||
|
||||
@SuppressWarnings("checkstyle:MagicNumber")
|
||||
private static Rect parseCrop(String crop) {
|
||||
if ("-".equals(crop)) {
|
||||
return null;
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
package com.genymobile.scrcpy.wrappers;
|
||||
|
||||
//import android.annotation.SuppressLint;
|
||||
import android.os.IInterface;
|
||||
//import android.view.InputEvent;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
|
Loading…
Add table
Reference in a new issue