Fix JVM Warnings

This commit is contained in:
Daniel Mills
2021-07-21 08:10:11 -04:00
parent 8f57364547
commit c5262f188e
7 changed files with 34 additions and 14 deletions

View File

@@ -635,6 +635,7 @@ public class IO {
* @return the requested byte array
* @deprecated Use {@link String#getBytes()}
*/
@Deprecated
public static byte[] toByteArray(String input) {
return input.getBytes();
}
@@ -770,6 +771,7 @@ public class IO {
* @return the requested String
* @deprecated Use {@link String#String(byte[])}
*/
@Deprecated
public static String toString(byte[] input) {
return new String(input);
}
@@ -788,6 +790,7 @@ public class IO {
* @throws IOException if an I/O error occurs (never occurs)
* @deprecated Use {@link String#String(byte[], String)}
*/
@Deprecated
public static String toString(byte[] input, String encoding) throws IOException {
if (encoding == null) {
return new String(input);