diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/GmsGraphQLEngine.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/GmsGraphQLEngine.java index 8d9b9a5ad82c8..e3eef0688c269 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/GmsGraphQLEngine.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/GmsGraphQLEngine.java @@ -1643,7 +1643,8 @@ private void configureResolvedAuditStampResolvers(final RuntimeWiring.Builder bu typeWiring.dataFetcher( "actor", new LoadableTypeResolver<>( - corpUserType, (env) -> ((ResolvedAuditStamp) env.getSource()).getActor().getUrn()))); + corpUserType, + (env) -> ((ResolvedAuditStamp) env.getSource()).getActor().getUrn()))); } /** diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/chart/mappers/ChartMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/chart/mappers/ChartMapper.java index d3aced26350df..feaf28c472c96 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/chart/mappers/ChartMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/chart/mappers/ChartMapper.java @@ -52,7 +52,6 @@ import com.linkedin.metadata.key.DataPlatformKey; import com.linkedin.metadata.utils.EntityKeyUtils; import com.linkedin.structured.StructuredProperties; - import java.util.stream.Collectors; import javax.annotation.Nonnull; diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/container/mappers/ContainerMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/container/mappers/ContainerMapper.java index 4785cadb1a1de..4697853e99901 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/container/mappers/ContainerMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/container/mappers/ContainerMapper.java @@ -35,7 +35,6 @@ import com.linkedin.entity.EnvelopedAspectMap; import com.linkedin.metadata.Constants; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nullable; public class ContainerMapper { @@ -145,7 +144,8 @@ public static Container map(final EntityResponse entityResponse) { final EnvelopedAspect envelopedStructuredProps = aspects.get(STRUCTURED_PROPERTIES_ASPECT_NAME); if (envelopedStructuredProps != null) { result.setStructuredProperties( - StructuredPropertiesMapper.map(new StructuredProperties(envelopedStructuredProps.getValue().data()))); + StructuredPropertiesMapper.map( + new StructuredProperties(envelopedStructuredProps.getValue().data()))); } return result; diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/corpgroup/mappers/CorpGroupMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/corpgroup/mappers/CorpGroupMapper.java index 96ea6dd3f52dd..a83ce6b60085a 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/corpgroup/mappers/CorpGroupMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/corpgroup/mappers/CorpGroupMapper.java @@ -18,7 +18,6 @@ import com.linkedin.identity.CorpGroupInfo; import com.linkedin.metadata.key.CorpGroupKey; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; /** diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/corpuser/mappers/CorpUserMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/corpuser/mappers/CorpUserMapper.java index e67955d3d08c7..c105752bbcea8 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/corpuser/mappers/CorpUserMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/corpuser/mappers/CorpUserMapper.java @@ -27,7 +27,6 @@ import com.linkedin.identity.CorpUserStatus; import com.linkedin.metadata.key.CorpUserKey; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; import javax.annotation.Nullable; diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dashboard/mappers/DashboardMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dashboard/mappers/DashboardMapper.java index 682050c81891f..53dcefb5239c4 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dashboard/mappers/DashboardMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dashboard/mappers/DashboardMapper.java @@ -50,7 +50,6 @@ import com.linkedin.metadata.key.DataPlatformKey; import com.linkedin.metadata.utils.EntityKeyUtils; import com.linkedin.structured.StructuredProperties; - import java.util.stream.Collectors; import javax.annotation.Nonnull; diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataflow/mappers/DataFlowMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataflow/mappers/DataFlowMapper.java index 3f32b06d70fd0..484406007a3b9 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataflow/mappers/DataFlowMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataflow/mappers/DataFlowMapper.java @@ -40,7 +40,6 @@ import com.linkedin.metadata.key.DataPlatformKey; import com.linkedin.metadata.utils.EntityKeyUtils; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; public class DataFlowMapper implements ModelMapper { diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/datajob/mappers/DataJobMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/datajob/mappers/DataJobMapper.java index abe5671e38f42..c7f352a230fc6 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/datajob/mappers/DataJobMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/datajob/mappers/DataJobMapper.java @@ -43,7 +43,6 @@ import com.linkedin.entity.EnvelopedAspectMap; import com.linkedin.metadata.key.DataJobKey; import com.linkedin.structured.StructuredProperties; - import java.util.stream.Collectors; import javax.annotation.Nonnull; @@ -123,7 +122,8 @@ public DataJob apply(@Nonnull final EntityResponse entityResponse) { } else if (SUB_TYPES_ASPECT_NAME.equals(name)) { result.setSubTypes(SubTypesMapper.map(new SubTypes(data))); } else if (STRUCTURED_PROPERTIES_ASPECT_NAME.equals(name)) { - result.setStructuredProperties(StructuredPropertiesMapper.map(new StructuredProperties(data))); + result.setStructuredProperties( + StructuredPropertiesMapper.map(new StructuredProperties(data))); } }); diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataproduct/mappers/DataProductMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataproduct/mappers/DataProductMapper.java index a4dee8c73ebe4..b8261b2a6df93 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataproduct/mappers/DataProductMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataproduct/mappers/DataProductMapper.java @@ -31,7 +31,6 @@ import com.linkedin.entity.EntityResponse; import com.linkedin.entity.EnvelopedAspectMap; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; public class DataProductMapper implements ModelMapper { diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/domain/DomainMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/domain/DomainMapper.java index 53a88b11e2491..f9710e776c5ea 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/domain/DomainMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/domain/DomainMapper.java @@ -1,5 +1,7 @@ package com.linkedin.datahub.graphql.types.domain; +import static com.linkedin.metadata.Constants.STRUCTURED_PROPERTIES_ASPECT_NAME; + import com.linkedin.common.InstitutionalMemory; import com.linkedin.common.Ownership; import com.linkedin.common.urn.Urn; @@ -16,8 +18,6 @@ import com.linkedin.metadata.key.DomainKey; import com.linkedin.structured.StructuredProperties; -import static com.linkedin.metadata.Constants.STRUCTURED_PROPERTIES_ASPECT_NAME; - public class DomainMapper { public static Domain map(final EntityResponse entityResponse) { @@ -60,7 +60,8 @@ public static Domain map(final EntityResponse entityResponse) { final EnvelopedAspect envelopedStructuredProps = aspects.get(STRUCTURED_PROPERTIES_ASPECT_NAME); if (envelopedStructuredProps != null) { result.setStructuredProperties( - StructuredPropertiesMapper.map(new StructuredProperties(envelopedStructuredProps.getValue().data()))); + StructuredPropertiesMapper.map( + new StructuredProperties(envelopedStructuredProps.getValue().data()))); } return result; diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/GlossaryNodeType.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/GlossaryNodeType.java index 36572c8c3078a..f62b175407753 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/GlossaryNodeType.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/GlossaryNodeType.java @@ -30,7 +30,10 @@ public class GlossaryNodeType static final Set ASPECTS_TO_RESOLVE = ImmutableSet.of( - GLOSSARY_NODE_KEY_ASPECT_NAME, GLOSSARY_NODE_INFO_ASPECT_NAME, OWNERSHIP_ASPECT_NAME, STRUCTURED_PROPERTIES_ASPECT_NAME); + GLOSSARY_NODE_KEY_ASPECT_NAME, + GLOSSARY_NODE_INFO_ASPECT_NAME, + OWNERSHIP_ASPECT_NAME, + STRUCTURED_PROPERTIES_ASPECT_NAME); private final EntityClient _entityClient; diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/mappers/GlossaryNodeMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/mappers/GlossaryNodeMapper.java index 0363f1a553b56..6f2391ad8e902 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/mappers/GlossaryNodeMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/mappers/GlossaryNodeMapper.java @@ -18,7 +18,6 @@ import com.linkedin.glossary.GlossaryNodeInfo; import com.linkedin.metadata.key.GlossaryNodeKey; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; public class GlossaryNodeMapper implements ModelMapper { diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/mappers/GlossaryTermMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/mappers/GlossaryTermMapper.java index 58a1ecac0aa55..4201116c71ec0 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/mappers/GlossaryTermMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/glossary/mappers/GlossaryTermMapper.java @@ -24,7 +24,6 @@ import com.linkedin.glossary.GlossaryTermInfo; import com.linkedin.metadata.key.GlossaryTermKey; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; /** diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLFeatureMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLFeatureMapper.java index c36b7646110ae..522a11dc35aeb 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLFeatureMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLFeatureMapper.java @@ -37,7 +37,6 @@ import com.linkedin.ml.metadata.EditableMLFeatureProperties; import com.linkedin.ml.metadata.MLFeatureProperties; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; /** Maps Pegasus {@link RecordTemplate} objects to objects conforming to the GQL schema. */ diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLFeatureTableMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLFeatureTableMapper.java index 7fdf0af9c85b0..c96aae6c1f986 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLFeatureTableMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLFeatureTableMapper.java @@ -37,7 +37,6 @@ import com.linkedin.ml.metadata.EditableMLFeatureTableProperties; import com.linkedin.ml.metadata.MLFeatureTableProperties; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; /** Maps Pegasus {@link RecordTemplate} objects to objects conforming to the GQL schema. */ diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLModelGroupMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLModelGroupMapper.java index bb3fb9d44de34..b330775f799e7 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLModelGroupMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLModelGroupMapper.java @@ -36,7 +36,6 @@ import com.linkedin.ml.metadata.EditableMLModelGroupProperties; import com.linkedin.ml.metadata.MLModelGroupProperties; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; /** Maps Pegasus {@link RecordTemplate} objects to objects conforming to the GQL schema. */ diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLModelMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLModelMapper.java index 50c84216f6ec1..3d0a16f10d77f 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLModelMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLModelMapper.java @@ -49,7 +49,6 @@ import com.linkedin.ml.metadata.SourceCode; import com.linkedin.ml.metadata.TrainingData; import com.linkedin.structured.StructuredProperties; - import java.util.stream.Collectors; import javax.annotation.Nonnull; diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLPrimaryKeyMapper.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLPrimaryKeyMapper.java index db5e8cc42d37e..8455ec3d75e2c 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLPrimaryKeyMapper.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/mlmodel/mappers/MLPrimaryKeyMapper.java @@ -35,7 +35,6 @@ import com.linkedin.ml.metadata.EditableMLPrimaryKeyProperties; import com.linkedin.ml.metadata.MLPrimaryKeyProperties; import com.linkedin.structured.StructuredProperties; - import javax.annotation.Nonnull; /** Maps Pegasus {@link RecordTemplate} objects to objects conforming to the GQL schema. */