Skip to content

Commit 9ef0728

Browse files
author
Burak Serdar
committed
Change name to updateIfCurrent
1 parent 88baf40 commit 9ef0728

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crud/src/main/java/com/redhat/lightblue/crud/CRUDOperationContext.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public abstract class CRUDOperationContext implements MetadataResolver, Serializ
5454
private final HookManager hookManager;
5555
private final ExecutionOptions executionOptions;
5656
private final Set<String> documentVersions=new HashSet<>();
57-
private boolean updateIfSame;
57+
private boolean updateIfCurrent;
5858

5959
/**
6060
* This is the constructor used to represent the context of an operation
@@ -123,12 +123,12 @@ public Set<String> getUpdateDocumentVersions() {
123123
* updateDocumentVersions set, and update them only if they are
124124
* unchanged
125125
*/
126-
public boolean isUpdateIfSame() {
127-
return updateIfSame;
126+
public boolean isUpdateIfCurrent() {
127+
return updateIfCurrent;
128128
}
129129

130-
public void setUpdateIfSame(boolean b) {
131-
updateIfSame=b;
130+
public void setUpdateIfCurrent(boolean b) {
131+
updateIfCurrent=b;
132132
}
133133

134134
/**

crud/src/main/java/com/redhat/lightblue/mediator/Mediator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ protected OperationContext newCtx(Request request, CRUDOperation CRUDOperation)
673673
if(request instanceof WithIfSame) {
674674
WithIfSame wif=(WithIfSame)request;
675675
if(wif.isIfSameOnly()) {
676-
ctx.setUpdateIfSame(true);
676+
ctx.setUpdateIfCurrent(true);
677677
List<String> list=wif.getDocumentVersions();
678678
if(list!=null)
679679
ctx.getUpdateDocumentVersions().addAll(list);

0 commit comments

Comments
 (0)