Skip to content

Commit 29d5ba2

Browse files
committed
Auto format
1 parent a0503d3 commit 29d5ba2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/test/java/org/lmdbjava/TxnDeprecatedTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
import org.lmdbjava.Txn.IncompatibleParent;
3232

3333
/**
34-
* Tests all the deprecated txn related methods in {@link Env}. Essentially a duplicate of {@link TxnTest}. When
35-
* all the deprecated methods are deleted we can delete this test class.
34+
* Tests all the deprecated txn related methods in {@link Env}. Essentially a duplicate of {@link
35+
* TxnTest}. When all the deprecated methods are deleted we can delete this test class.
3636
*
3737
* @deprecated Tests all the deprecated txn related methods in {@link Env}.
3838
*/
@@ -75,7 +75,7 @@ public void txParent() {
7575
@Test
7676
public void txParent2() {
7777
try (Txn<ByteBuffer> txRoot = env.txnWrite();
78-
Txn<ByteBuffer> txChild = env.txn(txRoot, (TxnFlags[]) null)) {
78+
Txn<ByteBuffer> txChild = env.txn(txRoot, (TxnFlags[]) null)) {
7979
assertThat(txRoot.getParent()).isNull();
8080
assertThat(txChild.getParent()).isEqualTo(txRoot);
8181
}
@@ -110,7 +110,7 @@ void txParentRWChildROIncompatible() {
110110
assertThatThrownBy(
111111
() -> {
112112
try (Txn<ByteBuffer> txRoot = env.txnWrite()) {
113-
TxnFlags[] flags = new TxnFlags[]{MDB_RDONLY_TXN};
113+
TxnFlags[] flags = new TxnFlags[] {MDB_RDONLY_TXN};
114114
env.txn(txRoot, flags); // error
115115
}
116116
})

src/test/java/org/lmdbjava/TxnTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public void txParent() {
324324
@Test
325325
public void txParent2() {
326326
try (Txn<ByteBuffer> txRoot = env.txnWrite();
327-
Txn<ByteBuffer> txChild = env.txn(txRoot, (TxnFlagSet) null)) {
327+
Txn<ByteBuffer> txChild = env.txn(txRoot, (TxnFlagSet) null)) {
328328
assertThat(txRoot.getParent()).isNull();
329329
assertThat(txChild.getParent()).isEqualTo(txRoot);
330330
}
@@ -333,7 +333,7 @@ public void txParent2() {
333333
@Test
334334
public void txParent3() {
335335
try (Txn<ByteBuffer> txRoot = env.txnWrite();
336-
Txn<ByteBuffer> txChild = env.txn(txRoot, TxnFlagSet.EMPTY)) {
336+
Txn<ByteBuffer> txChild = env.txn(txRoot, TxnFlagSet.EMPTY)) {
337337
assertThat(txRoot.getParent()).isNull();
338338
assertThat(txChild.getParent()).isEqualTo(txRoot);
339339
}

0 commit comments

Comments
 (0)