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
import org.springframework.stereotype.Repository;
import org.springframework.web.context.annotation.RequestScope;
import java.util.ArrayList;
import java.util.List;
@Repository
......@@ -47,6 +48,6 @@ public class AwsWorkflowSystemMetadataRepository implements IWorkflowSystemMetad
*/
@Override
public List<WorkflowMetadata> getAllSystemWorkflow(String prefix) {
return null;
return new ArrayList<>();
}
}
......@@ -6,6 +6,7 @@ import org.opengroup.osdu.workflow.model.WorkflowMetadata;
import org.opengroup.osdu.workflow.provider.interfaces.IWorkflowSystemMetadataRepository;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
@Service
......@@ -49,6 +50,6 @@ public class GcpWorkflowSystemMetadataRepository implements IWorkflowSystemMetad
*/
@Override
public List<WorkflowMetadata> getAllSystemWorkflow(String prefix) {
return null;
return new ArrayList<>();
}
}
......@@ -5,6 +5,7 @@ import org.opengroup.osdu.workflow.model.WorkflowMetadata;
import org.opengroup.osdu.workflow.provider.interfaces.IWorkflowSystemMetadataRepository;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
@Component
......@@ -47,6 +48,6 @@ public class WorkflowSystemMetadataRepository implements IWorkflowSystemMetadata
*/
@Override
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