mirror of
https://github.com/google/nomulus
synced 2026-01-05 13:07:04 +00:00
Remove datastore related code (#1906)
This commit is contained in:
@@ -55,7 +55,7 @@ public final class DiffUtils {
|
||||
}
|
||||
}
|
||||
|
||||
/** Pretty-prints a deep diff between two maps that represent Datastore entities. */
|
||||
/** Pretty-prints a deep diff between two maps that represent entities. */
|
||||
public static String prettyPrintEntityDeepDiff(Map<?, ?> a, Map<?, ?> b) {
|
||||
return prettyPrintDiffedMap(deepDiff(a, b, true), null);
|
||||
}
|
||||
|
||||
@@ -17,9 +17,7 @@ package google.registry.util;
|
||||
import com.google.common.io.Files;
|
||||
import java.nio.file.Path;
|
||||
|
||||
/**
|
||||
* A utility class for conversion of input file paths into names for entities in Datastore.
|
||||
*/
|
||||
/** A utility class for conversion of input file paths into names for entities in the database. */
|
||||
public final class ListNamingUtils {
|
||||
|
||||
/** Turns a file path into a name suitable for use as the name of a premium or reserved list. */
|
||||
|
||||
@@ -31,8 +31,8 @@ public class RegistrarUtils {
|
||||
|
||||
/**
|
||||
* Returns a normalized registrar ID by taking the input and making it lowercase and removing all
|
||||
* characters that aren't alphanumeric or hyphens. The normalized id should be unique in
|
||||
* Datastore, and is suitable for use in email addresses.
|
||||
* characters that aren't alphanumeric or hyphens. The normalized id should be unique in the
|
||||
* database, and is suitable for use in email addresses.
|
||||
*/
|
||||
public static String normalizeRegistrarId(String registrarId) {
|
||||
return Ascii.toLowerCase(registrarId).replaceAll("[^a-z0-9\\-]", "");
|
||||
|
||||
Reference in New Issue
Block a user