diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-07-07 10:24:43 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-07-07 10:24:43 +0200 |
commit | 8411578893a53d79c51d0d866666673755d16f3b (patch) | |
tree | dbc912ba0615ec17b421697e40f1524673afee6e /node-repository | |
parent | e5c09f0cfd3077498b5243adba2f8fda35318aa7 (diff) |
Give up using a type parameter for transaction operations, again
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/EagerCountingCuratorTransaction.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/EagerCountingCuratorTransaction.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/EagerCountingCuratorTransaction.java index 6e940763449..f806810597b 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/EagerCountingCuratorTransaction.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/EagerCountingCuratorTransaction.java @@ -9,7 +9,7 @@ import com.yahoo.vespa.curator.recipes.CuratorCounter; * A curator transaction of curator counting operations which increments during prepare * such that the counter is also increased if there is a commit error. */ -class EagerCountingCuratorTransaction extends AbstractTransaction<EagerCountingCuratorTransaction.CountingCuratorOperation> { +class EagerCountingCuratorTransaction extends AbstractTransaction { /** Creates a counting curator transaction containing a single increment operation */ public EagerCountingCuratorTransaction(CuratorCounter counter) { @@ -18,8 +18,8 @@ class EagerCountingCuratorTransaction extends AbstractTransaction<EagerCountingC @Override public void prepare() { - for (CountingCuratorOperation operation : operations()) - operation.next(); + for (Operation operation : operations()) + ((CountingCuratorOperation)operation).next(); } @Override |