@Test public void testTrue() { assertTrue(RequiredFlag.choose(true, null)); assertTrue(RequiredFlag.choose(true, false)); assertTrue(RequiredFlag.choose(true, true)); }
public static Boolean choose(Boolean parent, Boolean child) { if (parent == Boolean.TRUE || child == Boolean.TRUE) { return true; } return parent == null ? child : parent; }
RequiredFlag { public static Boolean choose(Boolean parent, Boolean child) { if (parent == Boolean.TRUE || child == Boolean.TRUE) { return true; } return parent == null ? child : parent; } }
RequiredFlag { public static Boolean choose(Boolean parent, Boolean child) { if (parent == Boolean.TRUE || child == Boolean.TRUE) { return true; } return parent == null ? child : parent; }  }
RequiredFlag { public static Boolean choose(Boolean parent, Boolean child) { if (parent == Boolean.TRUE || child == Boolean.TRUE) { return true; } return parent == null ? child : parent; }  static Boolean choose(Boolean parent, Boolean child); }
RequiredFlag { public static Boolean choose(Boolean parent, Boolean child) { if (parent == Boolean.TRUE || child == Boolean.TRUE) { return true; } return parent == null ? child : parent; }  static Boolean choose(Boolean parent, Boolean child);  }