mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
* 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
|
||||
if (! name.equals(classDef.getName()))
|
||||
if (! getName().equals(classDef.getName()))
|
||||
{
|
||||
isUpdated = true;
|
||||
}
|
||||
@@ -539,9 +539,9 @@ import org.alfresco.util.EqualsHelper;
|
||||
}
|
||||
|
||||
// check parent name
|
||||
if (parentName != null)
|
||||
if (getParentName() != null)
|
||||
{
|
||||
if (! parentName.equals(classDef.getParentName()))
|
||||
if (! getParentName().equals(classDef.getParentName()))
|
||||
{
|
||||
isUpdated = true;
|
||||
}
|
||||
@@ -628,7 +628,7 @@ import org.alfresco.util.EqualsHelper;
|
||||
}
|
||||
|
||||
// check archive/inheritedArchive
|
||||
if (archive == null)
|
||||
if (getArchive() == null)
|
||||
{
|
||||
if (classDef.getArchive() != null)
|
||||
{
|
||||
@@ -638,15 +638,16 @@ import org.alfresco.util.EqualsHelper;
|
||||
else
|
||||
{
|
||||
Boolean classArchive = classDef.getArchive();
|
||||
if (classArchive == null || classArchive.booleanValue() != archive.booleanValue())
|
||||
if (classArchive == null || classArchive.booleanValue() != getArchive().booleanValue())
|
||||
{
|
||||
isUpdatedIncrementally = true;
|
||||
}
|
||||
}
|
||||
|
||||
// check includedInSuperTypeQuery/inheritedIncludedInSuperTypeQuery
|
||||
if (includedInSuperTypeQuery == null)
|
||||
if (getIncludedInSuperTypeQuery() == null)
|
||||
{
|
||||
// belts-and-braces (currently does not return null)
|
||||
if (classDef.getIncludedInSuperTypeQuery() != null)
|
||||
{
|
||||
isUpdatedIncrementally = true;
|
||||
@@ -655,7 +656,7 @@ import org.alfresco.util.EqualsHelper;
|
||||
else
|
||||
{
|
||||
Boolean classIncludedInSuperTypeQuery = classDef.getIncludedInSuperTypeQuery();
|
||||
if (classIncludedInSuperTypeQuery == null || classIncludedInSuperTypeQuery.booleanValue() != includedInSuperTypeQuery.booleanValue())
|
||||
if (classIncludedInSuperTypeQuery == null || classIncludedInSuperTypeQuery.booleanValue() != getIncludedInSuperTypeQuery().booleanValue())
|
||||
{
|
||||
isUpdatedIncrementally = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user