From 41fffdcf7bf22464c41bc93ee80ad46e6b4cf17a Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 12 Sep 2013 16:28:14 +0200 Subject: [PATCH] Polish Javadoc in ResourceUtils --- .../java/org/springframework/util/ResourceUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/util/ResourceUtils.java b/spring-core/src/main/java/org/springframework/util/ResourceUtils.java index b695e2f85a1..7f373a93838 100644 --- a/spring-core/src/main/java/org/springframework/util/ResourceUtils.java +++ b/spring-core/src/main/java/org/springframework/util/ResourceUtils.java @@ -30,15 +30,15 @@ import java.net.URLConnection; * *

Consider using Spring's Resource abstraction in the core package * for handling all kinds of file resources in a uniform manner. - * {@link org.springframework.core.io.ResourceLoader}'s {@code getResource} + * {@link org.springframework.core.io.ResourceLoader}'s {@code getResource()} * method can resolve any location to a {@link org.springframework.core.io.Resource} - * object, which in turn allows to obtain a {@code java.io.File} in the + * object, which in turn allows one to obtain a {@code java.io.File} in the * file system through its {@code getFile()} method. * *

The main reason for these utility methods for resource location handling * is to support {@link Log4jConfigurer}, which must be able to resolve * resource locations before the logging system has been initialized. - * Spring' Resource abstraction in the core package, on the other hand, + * Spring's {@code Resource} abstraction in the core package, on the other hand, * already expects the logging system to be available. * * @author Juergen Hoeller @@ -143,7 +143,7 @@ public abstract class ResourceUtils { /** * Resolve the given resource location to a {@code java.io.File}, * i.e. to a file in the file system. - *

Does not check whether the fil actually exists; simply returns + *

Does not check whether the file actually exists; simply returns * the File that the given location would correspond to. * @param resourceLocation the resource location to resolve: either a * "classpath:" pseudo URL, a "file:" URL, or a plain file path @@ -299,7 +299,7 @@ public abstract class ResourceUtils { /** * Create a URI instance for the given URL, - * replacing spaces with "%20" quotes first. + * replacing spaces with "%20" URI encoding first. *

Furthermore, this method works on JDK 1.4 as well, * in contrast to the {@code URL.toURI()} method. * @param url the URL to convert into a URI instance @@ -313,7 +313,7 @@ public abstract class ResourceUtils { /** * Create a URI instance for the given location String, - * replacing spaces with "%20" quotes first. + * replacing spaces with "%20" URI encoding first. * @param location the location String to convert into a URI instance * @return the URI instance * @throws URISyntaxException if the location wasn't a valid URI