File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/test/java/org/lmdbjava Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3131import 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 })
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments