This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/main by this push:
new e3e4da9d3d GH-3437: Initialize fields of Cmds.java before
JenaSystem.init()
e3e4da9d3d is described below
commit e3e4da9d3d333482e276fc078a6ff64334f7d0d2
Author: Claus Stadler <[email protected]>
AuthorDate: Thu Sep 18 20:54:32 2025 +0200
GH-3437: Initialize fields of Cmds.java before JenaSystem.init()
---
jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java
b/jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java
index a879fd982f..db1719640d 100644
--- a/jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java
+++ b/jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java
@@ -30,11 +30,11 @@ import org.apache.jena.sys.JenaSystem;
*/
public class Cmds {
- static { JenaSystem.init(); }
-
private static Map<String, Consumer<String[]>> cmds = new
ConcurrentHashMap<>();
private static Object lock = new Object();
+ static { JenaSystem.init(); }
+
// Initialize via JenaSubsystemLifecycle and not rely on class
initialization.
static void init() {}