From 214aa88f9b0a5668d1ae67cce3131e2b997f6eae Mon Sep 17 00:00:00 2001 From: Rob Nelson Date: Thu, 30 Jan 2020 14:25:05 -0500 Subject: [PATCH] #175: remove un-used import statments from 'inert' graphql files --- .../graphql/inert/model/person/Position.java | 11 ----------- .../graphql/inert/model/person/PositionStub.java | 13 ------------- .../graphql/inert/service/OrganizationResolver.java | 2 +- .../graphql/inert/service/PositionResolver.java | 3 --- 4 files changed, 1 insertion(+), 28 deletions(-) diff --git a/src/main/java/edu/tamu/scholars/middleware/graphql/inert/model/person/Position.java b/src/main/java/edu/tamu/scholars/middleware/graphql/inert/model/person/Position.java index b3e7643b9..c6b4d2eff 100644 --- a/src/main/java/edu/tamu/scholars/middleware/graphql/inert/model/person/Position.java +++ b/src/main/java/edu/tamu/scholars/middleware/graphql/inert/model/person/Position.java @@ -2,22 +2,11 @@ import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_EMPTY; -import java.util.List; - -import edu.tamu.scholars.middleware.discovery.model.Common; import edu.tamu.scholars.middleware.graphql.model.AbstractNestedDocument; import io.leangen.graphql.annotations.types.GraphQLType; -import org.springframework.data.solr.core.mapping.Indexed; -import org.springframework.data.solr.core.mapping.SolrDocument; import com.fasterxml.jackson.annotation.JsonInclude; -import edu.tamu.scholars.middleware.discovery.annotation.CollectionSource; -import edu.tamu.scholars.middleware.discovery.annotation.NestedMultiValuedProperty; -import edu.tamu.scholars.middleware.discovery.annotation.NestedObject; -import edu.tamu.scholars.middleware.discovery.annotation.NestedObject.Reference; -import edu.tamu.scholars.middleware.discovery.annotation.PropertySource; - import edu.tamu.scholars.middleware.graphql.inert.model.position.OrganizationStub; import io.leangen.graphql.annotations.GraphQLIgnore; diff --git a/src/main/java/edu/tamu/scholars/middleware/graphql/inert/model/person/PositionStub.java b/src/main/java/edu/tamu/scholars/middleware/graphql/inert/model/person/PositionStub.java index c81c8d6b4..f2331c739 100644 --- a/src/main/java/edu/tamu/scholars/middleware/graphql/inert/model/person/PositionStub.java +++ b/src/main/java/edu/tamu/scholars/middleware/graphql/inert/model/person/PositionStub.java @@ -2,23 +2,10 @@ import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_EMPTY; -import java.util.List; - -import edu.tamu.scholars.middleware.discovery.model.Common; import edu.tamu.scholars.middleware.graphql.model.AbstractNestedDocument; -import io.leangen.graphql.annotations.types.GraphQLType; -import org.springframework.data.solr.core.mapping.Indexed; -import org.springframework.data.solr.core.mapping.SolrDocument; import com.fasterxml.jackson.annotation.JsonInclude; -import edu.tamu.scholars.middleware.discovery.annotation.CollectionSource; -import edu.tamu.scholars.middleware.discovery.annotation.NestedMultiValuedProperty; -import edu.tamu.scholars.middleware.discovery.annotation.NestedObject; -import edu.tamu.scholars.middleware.discovery.annotation.NestedObject.Reference; -import edu.tamu.scholars.middleware.discovery.annotation.PropertySource; - -//import edu.tamu.scholars.middleware.graphql.inert.model.position.Organization; import edu.tamu.scholars.middleware.graphql.inert.model.position.OrganizationStub; import io.leangen.graphql.annotations.GraphQLIgnore; diff --git a/src/main/java/edu/tamu/scholars/middleware/graphql/inert/service/OrganizationResolver.java b/src/main/java/edu/tamu/scholars/middleware/graphql/inert/service/OrganizationResolver.java index 69452047c..ee5784493 100644 --- a/src/main/java/edu/tamu/scholars/middleware/graphql/inert/service/OrganizationResolver.java +++ b/src/main/java/edu/tamu/scholars/middleware/graphql/inert/service/OrganizationResolver.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode; import edu.tamu.scholars.middleware.discovery.model.Individual; import edu.tamu.scholars.middleware.discovery.model.repo.IndividualRepo; -// import edu.tamu.scholars.middleware.graphql.model.Collection; + import graphql.language.Field; import io.leangen.graphql.annotations.GraphQLArgument; import io.leangen.graphql.annotations.GraphQLEnvironment; diff --git a/src/main/java/edu/tamu/scholars/middleware/graphql/inert/service/PositionResolver.java b/src/main/java/edu/tamu/scholars/middleware/graphql/inert/service/PositionResolver.java index 10f66f6b6..078412f83 100644 --- a/src/main/java/edu/tamu/scholars/middleware/graphql/inert/service/PositionResolver.java +++ b/src/main/java/edu/tamu/scholars/middleware/graphql/inert/service/PositionResolver.java @@ -14,16 +14,13 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import edu.tamu.scholars.middleware.graphql.inert.model.person.Position; -import edu.tamu.scholars.middleware.graphql.inert.model.person.PositionStub; -//import edu.tamu.scholars.middleware.graphql.inert.model.person.Person; import edu.tamu.scholars.middleware.graphql.model.Person; import edu.tamu.scholars.middleware.graphql.model.Relationship; import java.util.List; import java.util.Optional; import java.util.ArrayList; -import java.util.Iterator; @GraphQLApi @Service