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:
Jan Vonka
2007-09-18 10:07:43 +00:00
parent bd4bb4f640
commit 9d40827835

View File

@@ -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);