OPENJPA-536. Checking in optimization on behalf of Amy Yang.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.1.x@650703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-04-23 00:08:31 +00:00
parent 69e3633c49
commit 22b2f1858e
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ public class InheritanceOrderedMetaDataList
private LinkedList<ClassMetaData> buffer = new LinkedList<ClassMetaData>();
public boolean add(ClassMetaData meta) {
if (meta == null || buffer.contains(meta))
return false;
for (ListIterator<ClassMetaData> itr = buffer.listIterator();
itr.hasNext();) {
int ord = _comp.compare(meta, itr.next());