Skip to content
Permalink
Browse files

Improved: Specify that the component dependencies are never ‘null’

(OFBIZ-11238)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868029 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Oct 5, 2019
1 parent 60f7041 commit f628dec8be91ea85413e2882dc902d5d08eff02e
@@ -288,7 +288,7 @@ private ComponentConfig(Builder b) {
this.enabled = b.enabled;
this.resourceLoaderInfos = b.resourceLoaderInfos;
this.classpathInfos = b.classpathInfos;
this.dependsOnInfos = b.dependsOnInfos;
this.dependsOnInfos = (b.dependsOnInfos == null) ? Collections.emptyList() : b.dependsOnInfos;
this.entityResourceInfos = b.entityResourceInfos;
this.serviceResourceInfos = b.serviceResourceInfos;
this.testSuiteInfos = b.testSuiteInfos;
@@ -508,6 +508,11 @@ public String getGlobalName() {
return this.globalName;
}

/**
* Provides the list of dependent components.
*
* @return an immutable list containing the dependency information.
*/
public List<DependsOnInfo> getDependsOn() {
return this.dependsOnInfos;
}

0 comments on commit f628dec

Please sign in to comment.
You can’t perform that action at this time.