Remove Java 7 Spotbugs suppression

This commit is contained in:
Alexander Brandes committed 2022-12-30 13:59:06 +01:00
1 parent 80ebf0fbd7
commit 399b0d8587
1 file changed
+1 -3
+1 -3
View File
@@ -361,15 +361,13 @@ public class Main {
}
}
// TODO: Get rid of FB warning after updating to Java 7
/**
* reads up to maxRead bytes from InputStream if available into a String
* Reads up to maxRead bytes from InputStream if available into a String
*
* @param in input stream to be read
* @param maxToRead maximum number of bytes to read from the in
* @return a String read from in
*/
@SuppressFBWarnings(value = {"DM_DEFAULT_ENCODING", "RR_NOT_CHECKED"}, justification = "Legacy behavior, We expect less input than maxToRead")
private static String readStringNonBlocking(InputStream in, int maxToRead) {
byte[] buffer;
try {