openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r430188 - /incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
Date Wed, 09 Aug 2006 23:39:59 GMT
Author: awhite
Date: Wed Aug  9 16:39:58 2006
New Revision: 430188

URL: http://svn.apache.org/viewvc?rev=430188&view=rev
Log:
Fix invalid property warning logic.


Modified:
    incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java

Modified: incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java?rev=430188&r1=430187&r2=430188&view=diff
==============================================================================
--- incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
(original)
+++ incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
Wed Aug  9 16:39:58 2006
@@ -721,15 +721,15 @@
         // handle warnings for openjpa.SomeString, but not for
         // openjpa.some.subpackage.SomeString, since it might be valid for some
         // specific implementation of OpenJPA
-        boolean invalid = false;
         String prefix;
         for (int i = 0; i < _prefixes.size(); i++) {
-            prefix = (String) _prefixes.get(i);
+            prefix = (String) _prefixes.get(i) + ".";
             if (propName.toLowerCase().startsWith(prefix)
-                && propName.indexOf('.', prefix.length()) != -1)
-                invalid = true;
+                && propName.length() > prefix.length()
+                && propName.indexOf('.', prefix.length()) == -1)
+                return true;
         }
-        return invalid;
+        return false;
     }
 
     /**



Mime
View raw message