mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Inlines and simplifies
This commit is contained in:
@@ -614,19 +614,15 @@ public class PackageConfig extends Located implements Comparable, Serializable,
|
||||
}
|
||||
|
||||
public PackageConfig build() {
|
||||
embalmTarget();
|
||||
PackageConfig result = target;
|
||||
target = new PackageConfig(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
protected void embalmTarget() {
|
||||
target.actionConfigs = Collections.unmodifiableMap(target.actionConfigs);
|
||||
target.globalResultConfigs = Collections.unmodifiableMap(target.globalResultConfigs);
|
||||
target.interceptorConfigs = Collections.unmodifiableMap(target.interceptorConfigs);
|
||||
target.resultTypeConfigs = Collections.unmodifiableMap(target.resultTypeConfigs);
|
||||
target.globalExceptionMappingConfigs = Collections.unmodifiableList(target.globalExceptionMappingConfigs);
|
||||
target.parents = Collections.unmodifiableList(target.parents);
|
||||
PackageConfig result = target;
|
||||
target = new PackageConfig(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user