From f9a739cfe20faa9e461301b239ca3bf6ef955e5b Mon Sep 17 00:00:00 2001 From: zml Date: Thu, 16 Nov 2023 12:47:08 -0800 Subject: [PATCH] Improve var names in UUID serializer Co-authored-by: Riley Park --- .../adventure/text/serializer/gson/UUIDSerializer.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/text-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/UUIDSerializer.java b/text-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/UUIDSerializer.java index 123c529b1..b4652e3f6 100644 --- a/text-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/UUIDSerializer.java +++ b/text-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/UUIDSerializer.java @@ -47,12 +47,12 @@ public UUID read(final JsonReader in) throws IOException { // int-array format was added in 23w40a, a pre for 1.20.3 if (in.peek() == JsonToken.BEGIN_ARRAY) { in.beginArray(); - final int v0 = in.nextInt(); - final int v1 = in.nextInt(); - final int v2 = in.nextInt(); - final int v3 = in.nextInt(); + final int msb0 = in.nextInt(); + final int msb1 = in.nextInt(); + final int lsb0 = in.nextInt(); + final int lsb1 = in.nextInt(); in.endArray(); - return new UUID((long) v0 << 32 | ((long) v1 & 0xffffffffl), (long) v2 << 32 | ((long) v3 & 0xffffffffl)); + return new UUID((long) msb0 << 32 | ((long) msb1 & 0xffffffffl), (long) lsb0 << 32 | ((long) lsb1 & 0xffffffffl)); } return UUID.fromString(in.nextString());