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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user