diff --git a/java/google/registry/tools/RegistryCli.java b/java/google/registry/tools/RegistryCli.java index 0a7bc0f49..71a43b917 100644 --- a/java/google/registry/tools/RegistryCli.java +++ b/java/google/registry/tools/RegistryCli.java @@ -79,7 +79,7 @@ final class RegistryCli { commandInstances.put("help", helpCommand); for (Map.Entry> entry : commands.entrySet()) { - Command command = entry.getValue().newInstance(); + Command command = entry.getValue().getDeclaredConstructor().newInstance(); jcommander.addCommand(entry.getKey(), command); commandInstances.put(entry.getKey(), command); }