Skip to content

Commit

Permalink
Do a cosmetic method rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Mar 5, 2020
1 parent 5a1aab6 commit 0123917
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -259,7 +259,7 @@ public void addPrimaryDelta(ObjectDelta<O> delta) throws SchemaException {
}

public void swallowToPrimaryDelta(ItemDelta<?,?> itemDelta) throws SchemaException {
createOrModifyPrimaryDelta(
modifyOrCreatePrimaryDelta(
delta -> delta.swallow(itemDelta),
() -> {
ObjectDelta<O> newPrimaryDelta = getPrismContext().deltaFactory().object().create(getObjectTypeClass(), ChangeType.MODIFY);
Expand All @@ -279,7 +279,7 @@ private interface DeltaCreator<O extends Objectable> {
ObjectDelta<O> create() throws SchemaException;
}

private void createOrModifyPrimaryDelta(DeltaModifier<O> modifier, DeltaCreator<O> creator) throws SchemaException {
private void modifyOrCreatePrimaryDelta(DeltaModifier<O> modifier, DeltaCreator<O> creator) throws SchemaException {
if (primaryDelta == null) {
primaryDelta = creator.create();
} else if (!primaryDelta.isImmutable()) {
Expand Down

0 comments on commit 0123917

Please sign in to comment.