Skip to content

Commit ab3daca

Browse files
committed
Remove a warning. Tidy EOL white space.
1 parent a123694 commit ab3daca

File tree

1 file changed

+6
-7
lines changed
  • jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers

1 file changed

+6
-7
lines changed

jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/DatasetHandler.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ String asGraphName(Object graphName) {
8181

8282
/**
8383
* Add one or more named graphs to the query.
84-
* if {@code graphName} is a {@code collection} or an array each element in the
85-
* @code collection} or array is converted to a string and the result added to the
84+
* if {@code graphName} is a {@code collection} or an array each element in the
85+
* @code collection} or array is converted to a string and the result added to the
8686
* query.
8787
*
8888
* @param graphName the name to add.
@@ -100,20 +100,19 @@ public void fromNamed(Object graphName) {
100100
* @see #asGraphName(Object)
101101
*/
102102
private void processGraphName(Consumer<String> process, Object graphName) {
103-
if (graphName instanceof Iterable) {
104-
for (Object o : (Iterable)graphName) {
103+
if (graphName instanceof Iterable iterGraphName) {
104+
for (Object o : iterGraphName) {
105105
process.accept(asGraphName(o));
106106
}
107107
} else {
108108
process.accept(asGraphName(graphName));
109109
}
110110
}
111111

112-
113112
/**
114113
* Add one or more graph names to the query.
115-
* if {@code graphName} is a {@code collection} or an array each element in the
116-
* @code collection} or array is converted to a string and the result added to the
114+
* if {@code graphName} is a {@code collection} or an array each element in the
115+
* @code collection} or array is converted to a string and the result added to the
117116
* query.
118117
*
119118
* @param graphName the name to add.

0 commit comments

Comments
 (0)