package net.glowstone.util;

import java.util.UUID;

/**
 * Utility methods for dealing with UUIDs.
 */
public final class UuidUtils {

    private UuidUtils() {
    }

    public static UUID fromFlatString(String str) {
        // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
        return new UUID(Long.parseUnsignedLong(str.substring(0, 16), 16), Long.parseUnsignedLong(str.substring(16), 16));
    }

    public static String toFlatString(UUID uuid) {
        return uuid.toString().replace("-", "");
    }
}

@@ -154,32 +154,204 @@
 tils() %7B%0A    %7D%0A%0A
+    /**%0A     * Parses a UUID from a hexadecimal string without hyphens.%0A     *%0A     * @param str a 32-digit hexadecimal string%0A     * @return %7B@code str%7D as a UUID%0A     */%0A
     public stati
@@ -458,16 +458,33 @@
 ew UUID(
+%0A                
 Long.par
@@ -524,16 +524,32 @@
 6), 16),
+%0A               
  Long.pa

Fix CheckStyle issues in util/UuidUtils.java (#751)