openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r650703 - /openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/InheritanceOrderedMetaDataList.java
Date Wed, 23 Apr 2008 00:08:33 GMT
Author: pcl
Date: Tue Apr 22 17:08:31 2008
New Revision: 650703

URL: http://svn.apache.org/viewvc?rev=650703&view=rev
Log:
OPENJPA-536. Checking in optimization on behalf of Amy Yang.

Modified:
    openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/InheritanceOrderedMetaDataList.java

Modified: openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/InheritanceOrderedMetaDataList.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/InheritanceOrderedMetaDataList.java?rev=650703&r1=650702&r2=650703&view=diff
==============================================================================
--- openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/InheritanceOrderedMetaDataList.java
(original)
+++ openjpa/branches/1.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/InheritanceOrderedMetaDataList.java
Tue Apr 22 17:08:31 2008
@@ -31,6 +31,8 @@
     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());



Mime
View raw message