mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 23:39:57 +07:00
GitOrigin-RevId: 6f3c8a9f043de6e28fdaf024a950fad9e54446c8
12 lines
334 B
Java
12 lines
334 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>name());
|
|
}
|
|
catch (UnsupportedEncodingException uee) {}
|
|
}
|
|
} |