@Test public void testSetDefaultACLWithNull() { ParseDefaultACLController controller = new ParseDefaultACLController(); controller.set(null, true); assertNull(controller.defaultACLWithCurrentUser); assertNull(controller.lastCurrentUser); assertNull(controller.defaultACL); }
public void set(ParseACL acl, boolean withAccessForCurrentUser) { defaultACLWithCurrentUser = null; lastCurrentUser = null; if (acl != null) { ParseACL newDefaultACL = acl.copy(); newDefaultACL.setShared(true); defaultACL = newDefaultACL; defaultACLUsesCurrentUser = withAccessForCurrentUser; } else { defaultACL = null; } }
ParseDefaultACLController { public void set(ParseACL acl, boolean withAccessForCurrentUser) { defaultACLWithCurrentUser = null; lastCurrentUser = null; if (acl != null) { ParseACL newDefaultACL = acl.copy(); newDefaultACL.setShared(true); defaultACL = newDefaultACL; defaultACLUsesCurrentUser = withAccessForCurrentUser; } else { defaultACL = null; } } }
ParseDefaultACLController { public void set(ParseACL acl, boolean withAccessForCurrentUser) { defaultACLWithCurrentUser = null; lastCurrentUser = null; if (acl != null) { ParseACL newDefaultACL = acl.copy(); newDefaultACL.setShared(true); defaultACL = newDefaultACL; defaultACLUsesCurrentUser = withAccessForCurrentUser; } else { defaultACL = null; } }  }
ParseDefaultACLController { public void set(ParseACL acl, boolean withAccessForCurrentUser) { defaultACLWithCurrentUser = null; lastCurrentUser = null; if (acl != null) { ParseACL newDefaultACL = acl.copy(); newDefaultACL.setShared(true); defaultACL = newDefaultACL; defaultACLUsesCurrentUser = withAccessForCurrentUser; } else { defaultACL = null; } }  void set(ParseACL acl, boolean withAccessForCurrentUser); ParseACL get(); }
ParseDefaultACLController { public void set(ParseACL acl, boolean withAccessForCurrentUser) { defaultACLWithCurrentUser = null; lastCurrentUser = null; if (acl != null) { ParseACL newDefaultACL = acl.copy(); newDefaultACL.setShared(true); defaultACL = newDefaultACL; defaultACLUsesCurrentUser = withAccessForCurrentUser; } else { defaultACL = null; } }  void set(ParseACL acl, boolean withAccessForCurrentUser); ParseACL get();  }