1
0
mirror of https://github.com/google/nomulus synced 2026-04-25 10:40:49 +00:00

Remove VKeyTranslatorFactory.createVKey(String) (#1312)

* Remove VKeyTranslatorFactory.createVKey(String)

This method serves the same function as VKey.fromWebsafeKey(), and isn't used
anywhere.  Move the test for it into VKeyTest and use it to instead test
fromWebsafeKey() (which didn't previously have a test).
This commit is contained in:
Michael Muller
2021-09-09 12:24:02 -04:00
committed by GitHub
parent 0a25182fea
commit 031f4ea063
3 changed files with 16 additions and 17 deletions

View File

@@ -92,11 +92,6 @@ public class VKeyTranslatorFactory extends AbstractSimpleTranslatorFactory<VKey,
}
}
/** Create a VKey from a URL-safe string representation. */
public static VKey<?> createVKey(String urlSafe) {
return createVKey(com.googlecode.objectify.Key.create(urlSafe));
}
@VisibleForTesting
public static void addTestEntityClass(Class<?> clazz) {
CLASS_REGISTRY.put(com.googlecode.objectify.Key.getKind(clazz), clazz);