Skip to content

Commit

Permalink
Improved: Specify that the component dependencies are never ‘null’
Browse files Browse the repository at this point in the history
(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 f628dec
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f628dec

Please sign in to comment.