Merge "Fix errorprone warnings that should be errors" am: eb8582344b am: 123b01e28f am: c1cdf7ddf2

Original change: https://android-review.googlesource.com/c/platform/development/+/2254753

Change-Id: I4e6cddbde582684f84f1ef30dea0193985d0336c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2022-10-17 18:00:32 +00:00
committed by Automerger Merge Worker
3 changed files with 8 additions and 10 deletions

View File

@@ -245,7 +245,7 @@ public class MonkeySourceScript implements MonkeyEventSource {
if (line == null) {
return i;
}
line.trim();
line = line.trim();
processLine(line);
}
return MAX_ONE_TIME_READS;
@@ -262,7 +262,7 @@ public class MonkeySourceScript implements MonkeyEventSource {
if (line == null) {
return 0;
}
line.trim();
line = line.trim();
processLine(line);
return 1;
}

View File

@@ -40,18 +40,17 @@ import android.widget.Spinner;
import android.widget.Toast;
import android.widget.ToggleButton;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class MediaProjectionDemo extends Activity {
private static final String TAG = "MediaProjectionDemo";
private static final int PERMISSION_CODE = 1;
private static final List<Resolution> RESOLUTIONS = new ArrayList<Resolution>() {{
add(new Resolution(640,360));
add(new Resolution(960,540));
add(new Resolution(1366,768));
add(new Resolution(1600,900));
}};
private static final List<Resolution> RESOLUTIONS = Arrays.asList(
new Resolution(640,360),
new Resolution(960,540),
new Resolution(1366,768),
new Resolution(1600,900));
private int mScreenDensity;
private MediaProjectionManager mProjectionManager;

View File

@@ -188,7 +188,6 @@ public class EncodedStringValue implements Cloneable {
*/
@Override
public Object clone() throws CloneNotSupportedException {
super.clone();
int len = mData.length;
byte[] dstBytes = new byte[len];
System.arraycopy(mData, 0, dstBytes, 0, len);