Fix array-related errorprone warnings
The ArrayEquals, ArrayHashCode, ArrayToString, and ArraysAsListPrimitiveArray errorprone findings were demoted from errors to warnings. Fix existing occurrences of them so they can be made errors again. Bug: 242630963 Test: RUN_ERROR_PRONE=true m javac-check Change-Id: Iaecb05992482dfea041e51e3978d0d51d4ca2ce8
This commit is contained in:
@@ -790,7 +790,7 @@ public class PduParser {
|
||||
try {
|
||||
if (LOCAL_LOGV) {
|
||||
Log.v(LOG_TAG, "parseHeaders: CONTENT_TYPE: " + headerField +
|
||||
contentType.toString());
|
||||
Arrays.toString(contentType));
|
||||
}
|
||||
headers.setTextString(contentType, PduHeaders.CONTENT_TYPE);
|
||||
} catch(NullPointerException e) {
|
||||
|
||||
@@ -8,6 +8,7 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.Socket;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Handles reading and writing of messages with socket buffers. Uses a Handler
|
||||
@@ -47,7 +48,7 @@ public class ChatManager implements Runnable {
|
||||
}
|
||||
|
||||
// Send the obtained bytes to the UI Activity
|
||||
Log.d(TAG, "Rec:" + String.valueOf(buffer));
|
||||
Log.d(TAG, "Rec:" + Arrays.toString(buffer));
|
||||
handler.obtainMessage(WiFiServiceDiscoveryActivity.MESSAGE_READ,
|
||||
bytes, -1, buffer).sendToTarget();
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user