- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {DateTime d =
new DateTime()
DateTimeFormatter formatter;String text;formatter.parseDateTime(text)
Object instant;new DateTime(instant)
- Smart code suggestions by Codota
}
public void updateGroup(String groupName, PatchData patch, String modifiedBy) { try { Group retrieved = groupRepository.getGroupDetails(groupName); Group modified = Patch.apply(retrieved, patch); groupRepository.updateGroup(modified); auditor.objectUpdated(modifiedBy, retrieved, modified); } catch (MalformedDataException exception) { logger.warn("Problem with reading details of group {}.", groupName); throw exception; } }