corrected debug logic; improved trace message

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2007-01-16 22:57:05 +00:00
parent 7afa9075e1
commit a6e07e5040
1 changed files with 7 additions and 7 deletions

View File

@ -245,16 +245,16 @@ public class PersistenceMetaDataFactory
@Override
protected void mapPersistentTypeNames(Object rsrc, String[] names) {
if (!(rsrc instanceof URL)) {
if (log.isTraceEnabled())
log.trace(
_loc.get("map-persistent-types-skipping-non-url", rsrc));
return;
} else if (rsrc.toString().endsWith(".class")) {
if (rsrc.toString().endsWith(".class")) {
if (log.isTraceEnabled())
log.trace(
_loc.get("map-persistent-types-skipping-class", rsrc));
return;
} else if (!(rsrc instanceof URL)) {
if (log.isTraceEnabled())
log.trace(
_loc.get("map-persistent-types-skipping-non-url", rsrc));
return;
}
if (log.isTraceEnabled())
@ -412,7 +412,7 @@ public class PersistenceMetaDataFactory
if (rsrcs == null)
rsrcs = Collections.singleton("META-INF/orm.xml");
else
rsrcs.add ("META-INF/orm.xml");
rsrcs.add("META-INF/orm.xml");
}
public void setInto(Options opts) {