Fix DiffModelTest failures (fallout from r18790)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18801 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2010-02-24 10:13:10 +00:00
parent fa49dfc944
commit 277b13c91c

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2005-2009 Alfresco Software Limited. * Copyright (C) 2005-2010 Alfresco Software Limited.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@@ -521,7 +521,7 @@ import org.alfresco.util.EqualsHelper;
} }
// check name - cannot be null // check name - cannot be null
if (! name.equals(classDef.getName())) if (! getName().equals(classDef.getName()))
{ {
isUpdated = true; isUpdated = true;
} }
@@ -539,9 +539,9 @@ import org.alfresco.util.EqualsHelper;
} }
// check parent name // check parent name
if (parentName != null) if (getParentName() != null)
{ {
if (! parentName.equals(classDef.getParentName())) if (! getParentName().equals(classDef.getParentName()))
{ {
isUpdated = true; isUpdated = true;
} }
@@ -628,7 +628,7 @@ import org.alfresco.util.EqualsHelper;
} }
// check archive/inheritedArchive // check archive/inheritedArchive
if (archive == null) if (getArchive() == null)
{ {
if (classDef.getArchive() != null) if (classDef.getArchive() != null)
{ {
@@ -638,15 +638,16 @@ import org.alfresco.util.EqualsHelper;
else else
{ {
Boolean classArchive = classDef.getArchive(); Boolean classArchive = classDef.getArchive();
if (classArchive == null || classArchive.booleanValue() != archive.booleanValue()) if (classArchive == null || classArchive.booleanValue() != getArchive().booleanValue())
{ {
isUpdatedIncrementally = true; isUpdatedIncrementally = true;
} }
} }
// check includedInSuperTypeQuery/inheritedIncludedInSuperTypeQuery // check includedInSuperTypeQuery/inheritedIncludedInSuperTypeQuery
if (includedInSuperTypeQuery == null) if (getIncludedInSuperTypeQuery() == null)
{ {
// belts-and-braces (currently does not return null)
if (classDef.getIncludedInSuperTypeQuery() != null) if (classDef.getIncludedInSuperTypeQuery() != null)
{ {
isUpdatedIncrementally = true; isUpdatedIncrementally = true;
@@ -655,7 +656,7 @@ import org.alfresco.util.EqualsHelper;
else else
{ {
Boolean classIncludedInSuperTypeQuery = classDef.getIncludedInSuperTypeQuery(); Boolean classIncludedInSuperTypeQuery = classDef.getIncludedInSuperTypeQuery();
if (classIncludedInSuperTypeQuery == null || classIncludedInSuperTypeQuery.booleanValue() != includedInSuperTypeQuery.booleanValue()) if (classIncludedInSuperTypeQuery == null || classIncludedInSuperTypeQuery.booleanValue() != getIncludedInSuperTypeQuery().booleanValue())
{ {
isUpdatedIncrementally = true; isUpdatedIncrementally = true;
} }