You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ke...@apache.org on 2007/03/16 18:08:14 UTC
svn commit: r519064 -
/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/ClassImpl.java
Author: kelvingoodson
Date: Fri Mar 16 10:08:14 2007
New Revision: 519064
URL: http://svn.apache.org/viewvc?view=rev&rev=519064
Log:
TUSCANY-1179 -- committing the fix for this -- I'll close this JIRA and open another for the test case once the groboutils licensing issues are resolved
Modified:
incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/ClassImpl.java
Modified: incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/ClassImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/ClassImpl.java?view=diff&rev=519064&r1=519063&r2=519064
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/ClassImpl.java (original)
+++ incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/impl/ClassImpl.java Fri Mar 16 10:08:14 2007
@@ -245,8 +245,8 @@
protected void initPropertyLists()
{
- declaredProperties = new ArrayList();
- extendedProperties = Collections.EMPTY_LIST;
+ List declaredProperties = new ArrayList();
+ List extendedProperties = Collections.EMPTY_LIST;
for (Iterator i = getTypeFeatures().iterator(); i.hasNext(); ) {
EStructuralFeature eStructuralFeature = (EStructuralFeature)i.next();
@@ -259,6 +259,8 @@
else
declaredProperties.add(eStructuralFeature);
}
+ this.declaredProperties = declaredProperties;
+ this.extendedProperties = extendedProperties;
}
public EList getEStructuralFeatures()
@@ -295,14 +297,15 @@
allProperties = allExtendedProperties = null;
}
if (allProperties == null)
- {
- allProperties = new UniqueEList();
+ {
+ List allProperties = new UniqueEList();
for (final Iterator iterator = getBaseTypes().iterator(); iterator.hasNext(); )
{
Type baseType = (Type)iterator.next();
allProperties.addAll(baseType.getProperties());
}
- allProperties.addAll(getDeclaredProperties());
+ allProperties.addAll(getDeclaredProperties());
+ this.allProperties = allProperties;
}
return allProperties;
}
@@ -317,13 +320,14 @@
}
if (allProperties == null)
{
- allExtendedProperties = new UniqueEList();
+ List allExtendedProperties = new UniqueEList();
for (final Iterator iterator = getBaseTypes().iterator(); iterator.hasNext(); )
{
Type baseType = (Type)iterator.next();
allExtendedProperties.addAll(((ClassImpl)baseType).getAllExtendedProperties());
}
- allExtendedProperties.addAll(getExtendedProperties());
+ allExtendedProperties.addAll(getExtendedProperties());
+ this.allExtendedProperties = allExtendedProperties;
}
return allExtendedProperties;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org