Remove a warning. Tidy EOL white space.
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/DatasetHandler.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/DatasetHandler.java
index ca90fc2..b353f11 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/DatasetHandler.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/DatasetHandler.java
@@ -81,8 +81,8 @@
 
     /**
      * Add one or more named graphs to the query.
-     * if {@code graphName} is a {@code collection} or an array each element in the 
-     * @code collection} or array is converted to a string and the result added to the 
+     * if {@code graphName} is a {@code collection} or an array each element in the
+     * @code collection} or array is converted to a string and the result added to the
      * query.
      *
      * @param graphName the name to add.
@@ -100,8 +100,8 @@
      * @see #asGraphName(Object)
      */
     private void processGraphName(Consumer<String> process, Object graphName) {
-        if (graphName instanceof Iterable) {
-            for (Object o : (Iterable)graphName) {
+        if (graphName instanceof Iterable iterGraphName) {
+            for (Object o : iterGraphName) {
                 process.accept(asGraphName(o));
             }
         } else {
@@ -109,11 +109,10 @@
         }
     }
 
-
     /**
      * Add one or more graph names to the query.
-     * if {@code graphName} is a {@code collection} or an array each element in the 
-     * @code collection} or array is converted to a string and the result added to the 
+     * if {@code graphName} is a {@code collection} or an array each element in the
+     * @code collection} or array is converted to a string and the result added to the
      * query.
      *
      * @param graphName the name to add.