Skip to content

Commit

Permalink
apply linter
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscollins3456 committed Feb 5, 2024
1 parent 875d2b0 commit c5ab495
Show file tree
Hide file tree
Showing 18 changed files with 14 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import com.linkedin.identity.CorpGroupInfo;
import com.linkedin.metadata.key.CorpGroupKey;
import com.linkedin.structured.StructuredProperties;

import javax.annotation.Nonnull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<EntityResponse, DataFlow> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)));
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<EntityResponse, DataProduct> {
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ public class GlossaryNodeType

static final Set<String> 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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<EntityResponse, GlossaryNode> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.linkedin.glossary.GlossaryTermInfo;
import com.linkedin.metadata.key.GlossaryTermKey;
import com.linkedin.structured.StructuredProperties;

import javax.annotation.Nonnull;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit c5ab495

Please sign in to comment.