mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-09 17:26:22 +00:00
Fix JVM Warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user