We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
valueOf
1 parent 333a97e commit bc71cbfCopy full SHA for bc71cbf
src/main/java/io/github/treesitter/jtreesitter/InputEncoding.java
@@ -42,7 +42,7 @@ Charset charset() {
42
* @throws IllegalArgumentException If the character set is invalid.
43
*/
44
@SuppressWarnings("SameParameterValue")
45
- static @NonNull InputEncoding valueOf(@NonNull Charset charset) throws IllegalArgumentException {
+ public static @NonNull InputEncoding valueOf(@NonNull Charset charset) throws IllegalArgumentException {
46
if (charset.equals(StandardCharsets.UTF_8)) return InputEncoding.UTF_8;
47
if (charset.equals(StandardCharsets.UTF_16BE)) return InputEncoding.UTF_16BE;
48
if (charset.equals(StandardCharsets.UTF_16LE)) return InputEncoding.UTF_16LE;
0 commit comments