mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
12 lines
338 B
Java
12 lines
338 B
Java
// "Replace with 'cs'" "true"
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.nio.charset.Charset;
|
|
|
|
class Test {
|
|
void test(byte[] bytes, Charset cs) throws UnsupportedEncodingException {
|
|
try {
|
|
String string = new String(bytes, 0, 100, cs.<caret>toString());
|
|
}
|
|
catch (UnsupportedEncodingException uee) {}
|
|
}
|
|
} |