Skip to content

Commit

Permalink
fix: server checkstyle errors
Browse files Browse the repository at this point in the history
Fix errors reported by:

    gradle -p server check
  • Loading branch information
barry-ran committed Jun 18, 2019
1 parent 66c2e45 commit 6cc9cfb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/com/genymobile/scrcpy/IO.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.io.IOException;
import java.nio.ByteBuffer;

public class IO {
public final class IO {
private IO() {
// not instantiable
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
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;
Expand Down
4 changes: 3 additions & 1 deletion server/src/main/java/com/genymobile/scrcpy/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ public void run() {

@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();

Expand All @@ -73,6 +74,7 @@ private static Options createOptions(String... args) {
return options;
}

@SuppressWarnings("checkstyle:MagicNumber")
private static Rect parseCrop(String crop) {
if ("-".equals(crop)) {
return null;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 6cc9cfb

Please sign in to comment.