mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix unit test/build - DictionaryModelTypeTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6811 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -667,12 +667,8 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
||||
public ModelDefinition getModel(QName name)
|
||||
{
|
||||
CompiledModel model = getCompiledModel(name);
|
||||
if (model != null)
|
||||
{
|
||||
return model.getModelDefinition();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
@@ -948,7 +944,9 @@ public class DictionaryDAOImpl implements DictionaryDAO
|
||||
CompiledModel compiledModel = model.compile(this, namespaceDAO);
|
||||
QName modelName = compiledModel.getModelDefinition().getName();
|
||||
|
||||
CompiledModel previousVersion = getCompiledModel(modelName);
|
||||
CompiledModel previousVersion = null;
|
||||
try { previousVersion = getCompiledModel(modelName); } catch (DictionaryException e) {} // ignore missing model
|
||||
|
||||
if (previousVersion == null)
|
||||
{
|
||||
return new ArrayList<M2ModelDiff>(0);
|
||||
|
Reference in New Issue
Block a user