Reduce code duplication in getOptimizedActionList.

This commit is contained in:
asofold 2014-11-06 01:26:45 +01:00
parent 4dcebd11c7
commit ae35d26a93

View File

@ -44,11 +44,7 @@ public abstract class ConfigFileWithActions<D extends ActionData, L extends Abst
*/
public L getOptimizedActionList(final String path, final String permission)
{
if (factory == null){
setActionFactory();
}
final String value = this.getString(path);
return factory.createActionList(value, permission).getOptimizedCopy(this);
return getDefaultActionList(path, permission).getOptimizedCopy(this);
}
/**