diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/AbstractDomainPreProcessor.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/AbstractDomainPreProcessor.java index 368cfae4fe..9f930ab831 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/AbstractDomainPreProcessor.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/AbstractDomainPreProcessor.java @@ -60,6 +60,7 @@ public abstract class AbstractDomainPreProcessor implements PreProcessor { private static final Logger LOG = LoggerFactory.getLogger(AbstractDomainPreProcessor.class); + protected final AtlasGraph graph; protected final AtlasTypeRegistry typeRegistry; protected final EntityGraphRetriever entityRetriever; protected EntityGraphRetriever entityRetrieverNoRelations; @@ -78,6 +79,7 @@ public abstract class AbstractDomainPreProcessor implements PreProcessor { } AbstractDomainPreProcessor(AtlasTypeRegistry typeRegistry, EntityGraphRetriever entityRetriever, AtlasGraph graph) { + this.graph = graph; this.entityRetriever = entityRetriever; this.typeRegistry = typeRegistry; this.preProcessor = new AuthPolicyPreProcessor(graph, typeRegistry, entityRetriever); diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/DataProductPreProcessor.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/DataProductPreProcessor.java index 9009f3fb76..411fd45e50 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/DataProductPreProcessor.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/datamesh/DataProductPreProcessor.java @@ -5,7 +5,6 @@ import org.apache.atlas.RequestContext; import org.apache.atlas.exception.AtlasBaseException; import org.apache.atlas.model.instance.*; -import org.apache.atlas.repository.graph.GraphHelper; import org.apache.atlas.repository.graphdb.AtlasEdge; import org.apache.atlas.repository.graphdb.AtlasEdgeDirection; import org.apache.atlas.repository.graphdb.AtlasGraph;