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

commit cdcbd7211f4d7528125af139760cf4a1e4576131
Author: Andy Seaborne <[email protected]>
AuthorDate: Sun Apr 5 20:10:14 2026 +0100

    Reformat code
---
 .../org/apache/jena/riot/out/quoted/QuotedURI.java |  2 +-
 .../java/org/apache/jena/atlas/io/BlockUTF8.java   |  1 -
 .../java/org/apache/jena/atlas/io/OutputUtils.java | 64 ++++++++++------------
 3 files changed, 31 insertions(+), 36 deletions(-)

diff --git 
a/jena-arq/src/main/java/org/apache/jena/riot/out/quoted/QuotedURI.java 
b/jena-arq/src/main/java/org/apache/jena/riot/out/quoted/QuotedURI.java
index 213d3374a9..79d62ac458 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/out/quoted/QuotedURI.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/out/quoted/QuotedURI.java
@@ -39,7 +39,7 @@ import org.apache.jena.riot.SysRIOT;
  * <p>
  * There is no way to write these illegal characters.
  * Percent-encoding is an encoding, not an escape mechanism.
- * It put actual 3 characters %-X-X.into the URI.
+ * It put actual 3 characters %-X-X into the URI.
  * Even if the character is put in with a Unicode \-u escape, it is not a 
legal URI
  * and will fail URI parsing.
  */
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/io/BlockUTF8.java 
b/jena-base/src/main/java/org/apache/jena/atlas/io/BlockUTF8.java
index 77b85de0d1..b8680bf86b 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/io/BlockUTF8.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/io/BlockUTF8.java
@@ -43,7 +43,6 @@ import java.nio.CharBuffer;
 
 public class BlockUTF8
 {
-    // Looking in java.lang.StringCoding (Sun RT) is illuminating.
     // The actual encode/decode code is in sun.nio.cs.UTF_8.(Decoder|Encoder)
     // which has special cases for ByteBuffer, ByteBuffer with array (needs 
offsets)
     // and byte[] <-> char[]
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/io/OutputUtils.java 
b/jena-base/src/main/java/org/apache/jena/atlas/io/OutputUtils.java
index a096c661f6..1b2845676a 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/io/OutputUtils.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/io/OutputUtils.java
@@ -30,51 +30,47 @@ import org.apache.jena.atlas.lib.Chars ;
 
 public class OutputUtils
 {
-    /** Print the number x in width hex chars.  x must fit */
-    public static void printHex(StringBuilder out, int x, int width)
-    {
-        for ( int i = width-1 ; i >= 0 ; i-- )
-            x = oneHex(out, x, i) ;
+    /** Print the number x in width hex chars. x must fit */
+    public static void printHex(StringBuilder out, int x, int width) {
+        for ( int i = width - 1 ; i >= 0 ; i-- )
+            x = oneHex(out, x, i);
     }
 
     /** Print one hex digit of the number */
-    public static int oneHex(StringBuilder out, int x, int i)
-    {
-        int y = BitsInt.unpack(x, 4*i, 4*i+4) ;
-        char charHex = Chars.hexDigitsUC[y] ;
-        out.append(charHex) ; 
-        return BitsInt.clear(x, 4*i, 4*i+4) ;
+    public static int oneHex(StringBuilder out, int x, int i) {
+        int y = BitsInt.unpack(x, 4 * i, 4 * i + 4);
+        char charHex = Chars.hexDigitsUC[y];
+        out.append(charHex);
+        return BitsInt.clear(x, 4 * i, 4 * i + 4);
     }
-    
-    /** Print the number x in width hex chars.  x must fit */
-    public static void printHex(Writer out, int x, int width)
-    {
-        for ( int i = width-1 ; i >= 0 ; i-- )
-            x = oneHex(out, x, i) ;
+
+    /** Print the number x in width hex chars. x must fit */
+    public static void printHex(Writer out, int x, int width) {
+        for ( int i = width - 1 ; i >= 0 ; i-- )
+            x = oneHex(out, x, i);
     }
 
     /** Print one hex digit of the number */
-    public static int oneHex(Writer out, int x, int i)
-    {
-        int y = BitsInt.unpack(x, 4*i, 4*i+4) ;
-        char charHex = Chars.hexDigitsUC[y] ;
-        try { out.write(charHex) ; } catch (IOException ex) {} 
-        return BitsInt.clear(x, 4*i, 4*i+4) ;
+    public static int oneHex(Writer out, int x, int i) {
+        int y = BitsInt.unpack(x, 4 * i, 4 * i + 4);
+        char charHex = Chars.hexDigitsUC[y];
+        try {
+            out.write(charHex);
+        } catch (IOException ex) {}
+        return BitsInt.clear(x, 4 * i, 4 * i + 4);
     }
 
-    /** Print the number x in width hex chars.  x must fit */
-    public static void printHex(AWriter out, int x, int width)
-    {
-        for ( int i = width-1 ; i >= 0 ; i-- )
-            x = oneHex(out, x, i) ;
+    /** Print the number x in width hex chars. x must fit */
+    public static void printHex(AWriter out, int x, int width) {
+        for ( int i = width - 1 ; i >= 0 ; i-- )
+            x = oneHex(out, x, i);
     }
 
     /** Print one hex digit of the number */
-    public static int oneHex(AWriter out, int x, int i)
-    {
-        int y = BitsInt.unpack(x, 4*i, 4*i+4) ;
-        char charHex = Chars.hexDigitsUC[y] ;
-        out.print(charHex) ; 
-        return BitsInt.clear(x, 4*i, 4*i+4) ;
+    public static int oneHex(AWriter out, int x, int i) {
+        int y = BitsInt.unpack(x, 4 * i, 4 * i + 4);
+        char charHex = Chars.hexDigitsUC[y];
+        out.print(charHex);
+        return BitsInt.clear(x, 4 * i, 4 * i + 4);
     }
 }

Reply via email to