This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-graphql-core.git


The following commit(s) were added to refs/heads/master by this push:
     new ca8ee90  SLING-12200: sling-org-apache-sling-graphql-core 
unnecessarily uses the shaded guava from graphql-java (#40)
ca8ee90 is described below

commit ca8ee908f68b00502e3bbcd956f574620f0b0047
Author: Julian Reschke <[email protected]>
AuthorDate: Fri Dec 22 17:24:53 2023 +0100

    SLING-12200: sling-org-apache-sling-graphql-core unnecessarily uses the 
shaded guava from graphql-java (#40)
---
 .../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));
     }
 }

Reply via email to