public boolean setLocations(DefaultIssue issue, @Nullable Object locations) { if (!Objects.equal(locations, issue.getLocations())) { issue.setLocations(locations); issue.setChanged(true); return true; } return false; }
public boolean setPastLocations(DefaultIssue issue, @Nullable Object previousLocations) { Object currentLocations = issue.getLocations(); issue.setLocations(previousLocations); return setLocations(issue, currentLocations); }