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 cc11cb656e68c4ac2302505ccf29c38181950517
Author: Andy Seaborne <[email protected]>
AuthorDate: Fri Dec 27 21:15:53 2024 +0000

    Fix warnings
---
 .../ext/xerces/util/DatatypeMessageFormatter.java  | 23 +++++++++++-----------
 .../shacl/validation/event/ValidationEvent.java    |  2 +-
 2 files changed, 12 insertions(+), 13 deletions(-)

diff --git 
a/jena-core/src/main/java/org/apache/jena/ext/xerces/util/DatatypeMessageFormatter.java
 
b/jena-core/src/main/java/org/apache/jena/ext/xerces/util/DatatypeMessageFormatter.java
index 332947880d..ee1c5b8ac4 100644
--- 
a/jena-core/src/main/java/org/apache/jena/ext/xerces/util/DatatypeMessageFormatter.java
+++ 
b/jena-core/src/main/java/org/apache/jena/ext/xerces/util/DatatypeMessageFormatter.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -27,34 +27,33 @@ import java.util.ResourceBundle;
  * @author  Neeraj Bajaj, Sun Microsystems
  * @version $Id: DatatypeMessageFormatter.java 813087 2009-09-09 19:35:27Z 
mrglavas $
  */
-@SuppressWarnings("unused")
 public class DatatypeMessageFormatter {
-    
+
     private static final String BASE_NAME = 
"org.apache.jena.ext.xerces.impl.msg.DatatypeMessages";
-    
+
     /**
      * Formats a message with the specified arguments using the given
      * locale information.
-     * 
+     *
      * @param locale    The locale of the message.
      * @param key       The message key.
      * @param arguments The message replacement text arguments. The order
      *                  of the arguments must match that of the placeholders
      *                  in the actual message.
-     * 
+     *
      * @return          the formatted message.
      *
      * @throws MissingResourceException Thrown if the message with the
      *                                  specified key cannot be found.
      */
-    public static String formatMessage(Locale locale, 
+    public static String formatMessage(Locale locale,
         String key, Object[] arguments)
         throws MissingResourceException {
 
         if (locale == null) {
             locale = Locale.getDefault();
         }
-        final ResourceBundle resourceBundle = 
+        final ResourceBundle resourceBundle =
             ResourceBundle.getBundle(BASE_NAME, locale);
 
         // format message
@@ -64,14 +63,14 @@ public class DatatypeMessageFormatter {
             if (arguments != null) {
                 try {
                     msg = java.text.MessageFormat.format(msg, arguments);
-                } 
+                }
                 catch (Exception e) {
                     msg = resourceBundle.getString("FormatFailed");
                     msg += " " + resourceBundle.getString(key);
                 }
-            } 
+            }
         }
-        
+
         // error
         catch (MissingResourceException e) {
             msg = resourceBundle.getString("BadMessageKey");
diff --git 
a/jena-shacl/src/main/java/org/apache/jena/shacl/validation/event/ValidationEvent.java
 
b/jena-shacl/src/main/java/org/apache/jena/shacl/validation/event/ValidationEvent.java
index 9bc3c802d1..b08ffd5c02 100644
--- 
a/jena-shacl/src/main/java/org/apache/jena/shacl/validation/event/ValidationEvent.java
+++ 
b/jena-shacl/src/main/java/org/apache/jena/shacl/validation/event/ValidationEvent.java
@@ -21,7 +21,7 @@ package org.apache.jena.shacl.validation.event;
 import org.apache.jena.shacl.engine.ValidationContext;
 
 /**
- * All events during SHACL validation implement this interface, providing 
access to the {@link org.apache.jena.ext.xerces.impl.dv.ValidationContext}.
+ * All events during SHACL validation implement this interface, providing 
access to the {@link ValidationContext}.
  */
 public interface ValidationEvent {
     ValidationContext getValidationContext();

Reply via email to