Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor cleanup

  • Loading branch information...
commit 4b1a910b6377f83b5b5dc10c6c8a8e0000266898 1 parent e421e2b
@thomas-kielbus thomas-kielbus authored
View
8 megadesk-core/src/main/java/com/liveramp/megadesk/base/transaction/BaseTransactionExecution.java
@@ -39,7 +39,7 @@
}
private Dependency dependency;
- private Context data;
+ private Context context;
private State state = State.STANDBY;
private Lock lock;
@@ -65,10 +65,10 @@ public Context tryBegin(Dependency dependency) {
}
private Context prepare(Dependency dependency) {
- this.data = new BaseContext(dependency);
+ this.context = new BaseContext(dependency);
this.state = State.RUNNING;
this.dependency = dependency;
- return this.data;
+ return this.context;
}
@Override
@@ -76,7 +76,7 @@ public void commit() {
ensureState(State.RUNNING);
// Writes
for (Variable variable : dependency.writes()) {
- Object value = data.read(variable);
+ Object value = context.read(variable);
variable.driver().persistence().write(value);
}
// Release execution locks
Please sign in to comment.
Something went wrong with that request. Please try again.