You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2024/01/19 12:47:25 UTC

(causeway) branch CAUSEWAY-3676 updated: CAUSEWAY-3676: minor cleanup

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

danhaywood pushed a commit to branch CAUSEWAY-3676
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/CAUSEWAY-3676 by this push:
     new c0554a63d8 CAUSEWAY-3676: minor cleanup
c0554a63d8 is described below

commit c0554a63d8b51f65a31a0b1121c8d2fdce0339e9
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Fri Jan 19 12:46:12 2024 +0000

    CAUSEWAY-3676: minor cleanup
---
 .../viewer/graphql/viewer/source/ObjectTypeFactory.java      | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/incubator/viewers/graphql/viewer/src/main/java/org/apache/causeway/viewer/graphql/viewer/source/ObjectTypeFactory.java b/incubator/viewers/graphql/viewer/src/main/java/org/apache/causeway/viewer/graphql/viewer/source/ObjectTypeFactory.java
index 830c73a12a..83c3568b75 100644
--- a/incubator/viewers/graphql/viewer/src/main/java/org/apache/causeway/viewer/graphql/viewer/source/ObjectTypeFactory.java
+++ b/incubator/viewers/graphql/viewer/src/main/java/org/apache/causeway/viewer/graphql/viewer/source/ObjectTypeFactory.java
@@ -118,8 +118,7 @@ public class ObjectTypeFactory {
         gqlvObjectSpec.addCollections();
 
         // add actions
-        MutatorsDataForEntity mutatorsDataForEntity =
-                addActions(gqlvObjectSpec.getLogicalTypeNameSanitized(), gqlvObjectSpec.getObjectSpec(), gqlvObjectSpec.getGqlObjectTypeBuilder(), gqlvObjectSpec);
+        MutatorsDataForEntity mutatorsDataForEntity = addActions(gqlvObjectSpec);
 
         // build and register object type
         GraphQLObjectType graphQLObjectType = gqlvObjectSpec.buildGqlObjectType();
@@ -167,10 +166,11 @@ public class ObjectTypeFactory {
                 });
     }
 
-    MutatorsDataForEntity addActions(
-            final String logicalTypeNameSanitized,
-            final ObjectSpecification objectSpecification,
-            final GraphQLObjectType.Builder objectTypeBuilder, GqlvObjectSpec gqlvObjectSpec) {
+    MutatorsDataForEntity addActions(final GqlvObjectSpec gqlvObjectSpec) {
+
+        final String logicalTypeNameSanitized = gqlvObjectSpec.getLogicalTypeNameSanitized();
+        final ObjectSpecification objectSpecification = gqlvObjectSpec.getObjectSpec();
+        final GraphQLObjectType.Builder objectTypeBuilder = gqlvObjectSpec.getGqlObjectTypeBuilder();
 
         MutatorManager result = mutatorManager(logicalTypeNameSanitized);