@Test(expected = IllegalArgumentException.class) public void testRegisterEmptyActionNames() { registry.registerAction(new TestAction(), ""); }
@NonNull public Entry registerAction(@NonNull Action action, @NonNull String... names) { if (names.length == 0) { throw new IllegalArgumentException("Unable to register an action without a name."); } return registerEntry(new Entry(action, new ArrayList<>(Arrays.asList(names)))); }
ActionRegistry { @NonNull public Entry registerAction(@NonNull Action action, @NonNull String... names) { if (names.length == 0) { throw new IllegalArgumentException("Unable to register an action without a name."); } return registerEntry(new Entry(action, new ArrayList<>(Arrays.asList(names)))); } }
ActionRegistry { @NonNull public Entry registerAction(@NonNull Action action, @NonNull String... names) { if (names.length == 0) { throw new IllegalArgumentException("Unable to register an action without a name."); } return registerEntry(new Entry(action, new ArrayList<>(Arrays.asList(names)))); }  }
ActionRegistry { @NonNull public Entry registerAction(@NonNull Action action, @NonNull String... names) { if (names.length == 0) { throw new IllegalArgumentException("Unable to register an action without a name."); } return registerEntry(new Entry(action, new ArrayList<>(Arrays.asList(names)))); }  @NonNull Entry registerAction(@NonNull Action action, @NonNull String... names); @NonNull Entry registerAction(@NonNull Class<? extends Action> clazz, @NonNull String... names); @Nullable Entry getEntry(@NonNull String name); @NonNull Set<Entry> getEntries(); void unregisterAction(@NonNull String name); void registerDefaultActions(@NonNull Context context); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) void registerActions(@NonNull Context context, @XmlRes int actionsXml); }
ActionRegistry { @NonNull public Entry registerAction(@NonNull Action action, @NonNull String... names) { if (names.length == 0) { throw new IllegalArgumentException("Unable to register an action without a name."); } return registerEntry(new Entry(action, new ArrayList<>(Arrays.asList(names)))); }  @NonNull Entry registerAction(@NonNull Action action, @NonNull String... names); @NonNull Entry registerAction(@NonNull Class<? extends Action> clazz, @NonNull String... names); @Nullable Entry getEntry(@NonNull String name); @NonNull Set<Entry> getEntries(); void unregisterAction(@NonNull String name); void registerDefaultActions(@NonNull Context context); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) void registerActions(@NonNull Context context, @XmlRes int actionsXml);  }