mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-29 21:43:30 +01:00
Minor formatting change
This commit is contained in:
parent
e386f7cf45
commit
b203db3ce5
@ -42,8 +42,8 @@ public final class BinaryTagIO {
|
|||||||
* @return the compound tag
|
* @return the compound tag
|
||||||
* @throws IOException if an exception was encountered while reading a compound tag
|
* @throws IOException if an exception was encountered while reading a compound tag
|
||||||
*/
|
*/
|
||||||
public static @NotNull
|
@NotNull
|
||||||
CompoundTag readString(final @NotNull String input) throws IOException {
|
public static CompoundTag readString(final @NotNull String input) throws IOException {
|
||||||
try {
|
try {
|
||||||
final CharBuffer buffer = new CharBuffer(input);
|
final CharBuffer buffer = new CharBuffer(input);
|
||||||
final TagStringReader parser = new TagStringReader(buffer);
|
final TagStringReader parser = new TagStringReader(buffer);
|
||||||
@ -64,8 +64,8 @@ public final class BinaryTagIO {
|
|||||||
* @return the string
|
* @return the string
|
||||||
* @throws IOException if an exception was encountered while writing the compound tag
|
* @throws IOException if an exception was encountered while writing the compound tag
|
||||||
*/
|
*/
|
||||||
public static @NotNull
|
@NotNull
|
||||||
String writeString(final @NotNull CompoundTag tag) throws IOException {
|
public static String writeString(final @NotNull CompoundTag tag) throws IOException {
|
||||||
final StringBuilder sb = new StringBuilder();
|
final StringBuilder sb = new StringBuilder();
|
||||||
try (final TagStringWriter emit = new TagStringWriter(sb)) {
|
try (final TagStringWriter emit = new TagStringWriter(sb)) {
|
||||||
emit.writeTag(tag);
|
emit.writeTag(tag);
|
||||||
|
Loading…
Reference in New Issue
Block a user