@Test public void testAddNullActions() throws Exception { PageUtil.addAction(page, null); assertEquals(0, page.getEntries().size()); PageUtil.addAction(page, null, null); assertEquals(0, page.getEntries().size()); }
public static void addAction(@NonNull Page page, @Nullable ButtonDefinition action) { if (action != null) { page.add(Hood.get().createActionEntry(action)); } }
PageUtil { public static void addAction(@NonNull Page page, @Nullable ButtonDefinition action) { if (action != null) { page.add(Hood.get().createActionEntry(action)); } } }
PageUtil { public static void addAction(@NonNull Page page, @Nullable ButtonDefinition action) { if (action != null) { page.add(Hood.get().createActionEntry(action)); } }  }
PageUtil { public static void addAction(@NonNull Page page, @Nullable ButtonDefinition action) { if (action != null) { page.add(Hood.get().createActionEntry(action)); } }  void addProperty(@NonNull Page page, CharSequence key, DynamicValue<String> value); static void addProperty(@NonNull Page page, CharSequence key, String value); static void addHeader(@NonNull Page page, CharSequence title); static void addAction(@NonNull Page page, @Nullable ButtonDefinition action); static void addAction(@NonNull Page page, @Nullable ButtonDefinition action1, @Nullable ButtonDefinition action2); }
PageUtil { public static void addAction(@NonNull Page page, @Nullable ButtonDefinition action) { if (action != null) { page.add(Hood.get().createActionEntry(action)); } }  void addProperty(@NonNull Page page, CharSequence key, DynamicValue<String> value); static void addProperty(@NonNull Page page, CharSequence key, String value); static void addHeader(@NonNull Page page, CharSequence title); static void addAction(@NonNull Page page, @Nullable ButtonDefinition action); static void addAction(@NonNull Page page, @Nullable ButtonDefinition action1, @Nullable ButtonDefinition action2);  }