diff --git a/org.springframework.core/src/main/java/org/springframework/core/PriorityOrdered.java b/org.springframework.core/src/main/java/org/springframework/core/PriorityOrdered.java index d2dc657cc3c..1ab51087450 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/PriorityOrdered.java +++ b/org.springframework.core/src/main/java/org/springframework/core/PriorityOrdered.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,9 @@ package org.springframework.core; * {@link org.springframework.context.ApplicationContext}. * *
Note: PriorityOrdered post-processor beans are initialized in
- * a special phase, ahead of other post-postprocessor beans. This
- * subtly affects their autowiring behavior: They will only be
- * autowired against beans which do not require eager initialization
- * for type matching.
+ * a special phase, ahead of other post-processor beans. This subtly
+ * affects their autowiring behavior: They will only be autowired against
+ * beans which do not require eager initialization for type matching.
*
* @author Juergen Hoeller
* @since 2.5
diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/persistenceunit/PersistenceUnitReader.java b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/persistenceunit/PersistenceUnitReader.java
index 19232c585a6..7e90deb49e3 100644
--- a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/persistenceunit/PersistenceUnitReader.java
+++ b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/persistenceunit/PersistenceUnitReader.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2008 the original author or authors.
+ * Copyright 2002-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,7 +21,6 @@ import java.io.InputStream;
import java.net.URL;
import java.util.LinkedList;
import java.util.List;
-
import javax.persistence.spi.PersistenceUnitTransactionType;
import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilder;
@@ -129,8 +128,8 @@ class PersistenceUnitReader {
Listnull if none found
*/
protected Resource findSchemaResource() {
- for (int i = 0; i < SCHEMA_RESOURCE_LOCATIONS.length; i++) {
- Resource schemaLocation = this.resourcePatternResolver.getResource(SCHEMA_RESOURCE_LOCATIONS[i]);
+ for (String location : SCHEMA_RESOURCE_LOCATIONS) {
+ Resource schemaLocation = this.resourcePatternResolver.getResource(location);
if (schemaLocation.exists()) {
return schemaLocation;
}
@@ -210,7 +209,7 @@ class PersistenceUnitReader {
Element persistence = document.getDocumentElement();
URL unitRootURL = determinePersistenceUnitRootUrl(resource);
- List