File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments