Skip to content

Commit 1800dd6

Browse files
committed
Improve javadoc, format code
1 parent 8eb95d0 commit 1800dd6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/main/java/org/lmdbjava/DbiBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ public Stage3<T> addDbiFlags(final DbiFlagSet dbiFlagSet) {
302302
* Use the supplied transaction to open the {@link Dbi}.
303303
*
304304
* <p>The caller MUST commit the transaction after calling {@link Stage3#open()}, in order to
305-
* retain the <code>Dbi</code> in the <code>Env</code>.
305+
* retain the <code>Dbi</code> in the <code>Env</code>. The caller is also responsible for
306+
* closing the transaction.
306307
*
307308
* <p>If you don't call this method to supply a {@link Txn}, a {@link Txn} will be opened for
308309
* the purpose of creating and opening the {@link Dbi}, then closed. Therefore, if you already

src/test/java/org/lmdbjava/TargetNameTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ void customEmbedded() {
4343
void embeddedNameResolution() {
4444
// Note: Linux resolution now detects musl vs glibc at runtime
4545
// These tests verify the resolution logic but actual toolchain depends on system
46-
final String linuxToolchain = TargetName.resolveFilename(NONE, NONE, "x86_64", "Linux")
47-
.contains("-musl.") ? "musl" : "gnu";
46+
final String linuxToolchain =
47+
TargetName.resolveFilename(NONE, NONE, "x86_64", "Linux").contains("-musl.")
48+
? "musl"
49+
: "gnu";
4850
embed("aarch64-linux-" + linuxToolchain + ".so", "aarch64", "Linux");
4951
embed("aarch64-macos-none.so", "aarch64", "Mac OS");
5052
embed("x86_64-linux-" + linuxToolchain + ".so", "x86_64", "Linux");

0 commit comments

Comments
 (0)