blob: 5f3de141948ea6cc76dd5d02de9c3e8aa824dd76 [file]
// "Replace with 'StandardCharsets.US_ASCII'" "true"
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
class Test {
void test(byte[] bytes) {
String string = null;
try {
string = new String(bytes, StandardCharsets.US_ASCII);
} catch (Throwable t) {
return;
}
if(string.startsWith("Foo")) {
System.out.println("It's a foo!");
}
}
}