Commit fc032bec authored by Aalekh Jain's avatar Aalekh Jain
Browse files

Updated implementation for IWorkflowSystemMetadataRepository to return empty list instead of nulll

parent 42d0577d
...@@ -5,6 +5,7 @@ import org.opengroup.osdu.workflow.provider.interfaces.IWorkflowSystemMetadataRe ...@@ -5,6 +5,7 @@ import org.opengroup.osdu.workflow.provider.interfaces.IWorkflowSystemMetadataRe
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import org.springframework.web.context.annotation.RequestScope; import org.springframework.web.context.annotation.RequestScope;
import java.util.ArrayList;
import java.util.List; import java.util.List;
@Repository @Repository
...@@ -47,6 +48,6 @@ public class AwsWorkflowSystemMetadataRepository implements IWorkflowSystemMetad ...@@ -47,6 +48,6 @@ public class AwsWorkflowSystemMetadataRepository implements IWorkflowSystemMetad
*/ */
@Override @Override
public List<WorkflowMetadata> getAllSystemWorkflow(String prefix) { public List<WorkflowMetadata> getAllSystemWorkflow(String prefix) {
return null; return new ArrayList<>();
} }
} }
...@@ -6,6 +6,7 @@ import org.opengroup.osdu.workflow.model.WorkflowMetadata; ...@@ -6,6 +6,7 @@ import org.opengroup.osdu.workflow.model.WorkflowMetadata;
import org.opengroup.osdu.workflow.provider.interfaces.IWorkflowSystemMetadataRepository; import org.opengroup.osdu.workflow.provider.interfaces.IWorkflowSystemMetadataRepository;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List; import java.util.List;
@Service @Service
...@@ -49,6 +50,6 @@ public class GcpWorkflowSystemMetadataRepository implements IWorkflowSystemMetad ...@@ -49,6 +50,6 @@ public class GcpWorkflowSystemMetadataRepository implements IWorkflowSystemMetad
*/ */
@Override @Override
public List<WorkflowMetadata> getAllSystemWorkflow(String prefix) { public List<WorkflowMetadata> getAllSystemWorkflow(String prefix) {
return null; return new ArrayList<>();
} }
} }
...@@ -5,6 +5,7 @@ import org.opengroup.osdu.workflow.model.WorkflowMetadata; ...@@ -5,6 +5,7 @@ import org.opengroup.osdu.workflow.model.WorkflowMetadata;
import org.opengroup.osdu.workflow.provider.interfaces.IWorkflowSystemMetadataRepository; import org.opengroup.osdu.workflow.provider.interfaces.IWorkflowSystemMetadataRepository;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List; import java.util.List;
@Component @Component
...@@ -47,6 +48,6 @@ public class WorkflowSystemMetadataRepository implements IWorkflowSystemMetadata ...@@ -47,6 +48,6 @@ public class WorkflowSystemMetadataRepository implements IWorkflowSystemMetadata
*/ */
@Override @Override
public List<WorkflowMetadata> getAllSystemWorkflow(String prefix) { public List<WorkflowMetadata> getAllSystemWorkflow(String prefix) {
return null; return new ArrayList<>();
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment