From a6e07e50409f33e648a85095869174eb16db9c17 Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Tue, 16 Jan 2007 22:57:05 +0000 Subject: [PATCH] corrected debug logic; improved trace message git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496886 13f79535-47bb-0310-9956-ffa450edef68 --- .../persistence/PersistenceMetaDataFactory.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataFactory.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataFactory.java index 797d45eee..a9cfeca03 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataFactory.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataFactory.java @@ -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) {