fix some raw types and unchecked conversions
@@ -1239,25 +1239,25 @@ public class MockCuratorFramework implements CuratorFramework {
}
@Override
- public TransactionCreateBuilder create() {
+ public TransactionCreateBuilder<CuratorTransactionBridge> create() {
ensureNotCommitted();
return new MockTransactionCreateBuilder();
}
@Override
- public TransactionDeleteBuilder delete() {
+ public TransactionDeleteBuilder<CuratorTransactionBridge> delete() {
ensureNotCommitted();
return new MockTransactionDeleteBuilder();
}
@Override
- public TransactionSetDataBuilder setData() {
+ public TransactionSetDataBuilder<CuratorTransactionBridge> setData() {
ensureNotCommitted();
return new MockTransactionSetDataBuilder();
}
@Override
- public TransactionCheckBuilder check() {
+ public TransactionCheckBuilder<CuratorTransactionBridge> check() {
ensureNotCommitted();
throw new UnsupportedOperationException("Not implemented in MockCurator");
}
@@ -1266,7 +1266,7 @@ public class MockCuratorFramework implements CuratorFramework {
if (committed) throw new IllegalStateException("transaction already committed");
}
- private class MockTransactionCreateBuilder implements TransactionCreateBuilder {
+ private class MockTransactionCreateBuilder implements TransactionCreateBuilder<CuratorTransactionBridge> {
private CreateMode createMode = CreateMode.PERSISTENT;
@@ -1294,22 +1294,22 @@ public class MockCuratorFramework implements CuratorFramework {
}
@Override
- public TransactionCreateBuilder2 withTtl(long l) {
+ public TransactionCreateBuilder2<CuratorTransactionBridge> withTtl(long l) {
return this;
}
@Override
- public Object withACL(List list, boolean b) {
+ public MockTransactionCreateBuilder withACL(List<ACL> list, boolean b) {
return this;
}
@Override
- public Object withACL(List list) {
+ public MockTransactionCreateBuilder withACL(List<ACL> list) {
return this;
}
}
- private class MockTransactionDeleteBuilder implements TransactionDeleteBuilder {
+ private class MockTransactionDeleteBuilder implements TransactionDeleteBuilder<CuratorTransactionBridge> {
@Override
public Pathable<CuratorTransactionBridge> withVersion(int i) {
@@ -1324,7 +1324,7 @@ public class MockCuratorFramework implements CuratorFramework {
}
- private class MockTransactionSetDataBuilder implements TransactionSetDataBuilder {
+ private class MockTransactionSetDataBuilder implements TransactionSetDataBuilder<CuratorTransactionBridge> {
@Override
public VersionPathAndBytesable<CuratorTransactionBridge> compressed() {
