This is an automated email from the ASF dual-hosted git repository.

afs pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git

commit 7083eca95e999651499000efccf884401a25e94b
Author: Andy Seaborne <[email protected]>
AuthorDate: Sun May 3 20:18:42 2026 +0100

    Code tidy
---
 .../java/org/apache/jena/system/ThreadTxn.java     | 13 +++++------
 .../main/java/org/apache/jena/system/Vocab.java    | 26 +++++++++-------------
 2 files changed, 17 insertions(+), 22 deletions(-)

diff --git a/jena-arq/src/main/java/org/apache/jena/system/ThreadTxn.java 
b/jena-arq/src/main/java/org/apache/jena/system/ThreadTxn.java
index d9f10cdb5b..e6dfb2507b 100644
--- a/jena-arq/src/main/java/org/apache/jena/system/ThreadTxn.java
+++ b/jena-arq/src/main/java/org/apache/jena/system/ThreadTxn.java
@@ -33,18 +33,17 @@ import org.apache.jena.sparql.core.Transactional ;
  * forked transaction sees is outside the creating thread which may itself be 
in a
  * transaction. Warning: creating a write transaction inside a write 
transaction
  * will cause deadlock.
- */ 
+ */
 public class ThreadTxn {
 
-    /** Create a thread-backed delayed transaction action. 
+    /** Create a thread-backed delayed transaction action.
      * Call {@link ThreadAction#run} to perform the read transaction.
      */
     public static ThreadAction threadTxn(Transactional trans, TxnType txnType, 
Runnable action) {
         return create(trans, txnType, action, true, true) ;
     }
 
-
-    /** Create a thread-backed delayed READ transaction action. 
+    /** Create a thread-backed delayed READ transaction action.
      * Call {@link ThreadAction#run} to perform the read transaction.
      */
     public static ThreadAction threadTxnRead(Transactional trans, Runnable 
action) {
@@ -59,7 +58,7 @@ public class ThreadTxn {
     public static ThreadAction threadTxnWrite(Transactional trans, Runnable 
action) {
         return threadTxn(trans, TxnType.WRITE, action) ;
     }
-   
+
     /** Create a thread-backed delayed WRITE-abort action (mainly for 
testing). */
     public static ThreadAction threadTxnWriteAbort(Transactional trans, 
Runnable action) {
         return create(trans, TxnType.WRITE, action, true, false) ;
@@ -71,11 +70,11 @@ public class ThreadTxn {
             , action
             , afterAction(trans, txnType, isCommitAfter) ) ;
     }
-    
+
     private static Runnable beforeAction(Transactional trans, TxnType txnType, 
boolean isCommit) {
         return ()-> trans.begin(txnType) ;
     }
-    
+
     private static Runnable afterAction(Transactional trans, TxnType txnType, 
boolean isCommit) {
         return () -> {
             // Finish transaction (if no throwable)
diff --git a/jena-arq/src/main/java/org/apache/jena/system/Vocab.java 
b/jena-arq/src/main/java/org/apache/jena/system/Vocab.java
index 514eed015f..6f0ee37d6d 100644
--- a/jena-arq/src/main/java/org/apache/jena/system/Vocab.java
+++ b/jena-arq/src/main/java/org/apache/jena/system/Vocab.java
@@ -21,24 +21,20 @@
 
 package org.apache.jena.system;
 
-import org.apache.jena.rdf.model.Property ;
-import org.apache.jena.rdf.model.Resource ;
-import org.apache.jena.rdf.model.ResourceFactory ;
+import org.apache.jena.rdf.model.Property;
+import org.apache.jena.rdf.model.Resource;
+import org.apache.jena.rdf.model.ResourceFactory;
 
-public class Vocab
-{
-    public static Resource type(String namespace, String localName)
-    { 
-        return ResourceFactory.createResource(namespace+localName) ;
+public class Vocab {
+    public static Resource type(String namespace, String localName) {
+        return ResourceFactory.createResource(namespace + localName);
     }
-    
-    public static Resource resource(String namespace, String localName)
-    {
-        return ResourceFactory.createResource(namespace+localName) ;
+
+    public static Resource resource(String namespace, String localName) {
+        return ResourceFactory.createResource(namespace + localName);
     }
 
-    public static Property property(String namespace, String localName)
-    {
-        return ResourceFactory.createProperty(namespace+localName) ;
+    public static Property property(String namespace, String localName) {
+        return ResourceFactory.createProperty(namespace + localName);
     }
 }

Reply via email to