You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by re...@apache.org on 2023/12/21 16:01:05 UTC
(sling-org-apache-sling-graphql-core) branch SLING-12200 created (now 0ff2295)
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a change to branch SLING-12200
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-graphql-core.git
at 0ff2295 SLING-12200: sling-org-apache-sling-graphql-core unnecessarily uses the shaded guava from graphql-java
This branch includes the following new commits:
new 0ff2295 SLING-12200: sling-org-apache-sling-graphql-core unnecessarily uses the shaded guava from graphql-java
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(sling-org-apache-sling-graphql-core) 01/01: SLING-12200: sling-org-apache-sling-graphql-core unnecessarily uses the shaded guava from graphql-java
Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch SLING-12200
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-graphql-core.git
commit 0ff2295764e67e526b2a3d354481991ba4fa2d85
Author: Julian Reschke <re...@apache.org>
AuthorDate: Thu Dec 21 17:00:47 2023 +0100
SLING-12200: sling-org-apache-sling-graphql-core unnecessarily uses the shaded guava from graphql-java
---
.../org/apache/sling/graphql/core/engine/SelectedFieldWrapper.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/graphql/core/engine/SelectedFieldWrapper.java b/src/main/java/org/apache/sling/graphql/core/engine/SelectedFieldWrapper.java
index bde64f4..15399ee 100644
--- a/src/main/java/org/apache/sling/graphql/core/engine/SelectedFieldWrapper.java
+++ b/src/main/java/org/apache/sling/graphql/core/engine/SelectedFieldWrapper.java
@@ -18,7 +18,6 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
package org.apache.sling.graphql.core.engine;
-import graphql.com.google.common.collect.ImmutableList;
import graphql.schema.DataFetchingFieldSelectionSet;
import org.apache.commons.collections4.MultiValuedMap;
import org.apache.commons.collections4.multimap.HashSetValuedHashMap;
@@ -178,6 +177,6 @@ public class SelectedFieldWrapper implements SelectedField {
@Override
@NotNull
public List<String> getObjectTypeNames() {
- return ImmutableList.copyOf(objectTypeNames);
+ return Collections.unmodifiableList(new ArrayList<String>(objectTypeNames));
}
}