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) {