Fix invalid property warning logic.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430188 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2006-08-09 23:39:58 +00:00
parent fd74642a17
commit 3e758faf25
1 changed files with 5 additions and 5 deletions

View File

@ -721,15 +721,15 @@ public class ConfigurationImpl
// 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;
}
/**