From 34eb4dba3a4e1915989c29713a2b3551d3d5520d Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 28 Mar 2014 21:54:23 +0100 Subject: [PATCH] Update Javadoc for supported JBoss VFS version --- .../org/springframework/core/io/VfsResource.java | 15 +++++++++------ .../org/springframework/core/io/VfsUtils.java | 8 +++++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/io/VfsResource.java b/spring-core/src/main/java/org/springframework/core/io/VfsResource.java index 2b492ab0b9..a0ab31fe7d 100644 --- a/spring-core/src/main/java/org/springframework/core/io/VfsResource.java +++ b/spring-core/src/main/java/org/springframework/core/io/VfsResource.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 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. @@ -26,8 +26,11 @@ import org.springframework.core.NestedIOException; import org.springframework.util.Assert; /** - * VFS based {@link Resource} implementation. - * Supports the corresponding VFS API versions on JBoss AS 5.x as well as 6.x and 7.x. + * JBoss VFS based {@link Resource} implementation. + * + *

As of Spring 4.0, this class supports VFS 3.x on JBoss AS 6+ (package + * {@code org.jboss.vfs}) and is in particular compatible with JBoss AS 7 and + * WildFly 8. * * @author Ales Justin * @author Juergen Hoeller @@ -40,9 +43,9 @@ public class VfsResource extends AbstractResource { private final Object resource; - public VfsResource(Object resources) { - Assert.notNull(resources, "VirtualFile must not be null"); - this.resource = resources; + public VfsResource(Object resource) { + Assert.notNull(resource, "VirtualFile must not be null"); + this.resource = resource; } diff --git a/spring-core/src/main/java/org/springframework/core/io/VfsUtils.java b/spring-core/src/main/java/org/springframework/core/io/VfsUtils.java index fcc2c29f37..9291cee686 100644 --- a/spring-core/src/main/java/org/springframework/core/io/VfsUtils.java +++ b/spring-core/src/main/java/org/springframework/core/io/VfsUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 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. @@ -29,8 +29,10 @@ import org.springframework.util.ReflectionUtils; /** * Utility for detecting and accessing JBoss VFS in the classpath. - * As of Spring 4.0, supports VFS 3.x on JBoss AS 6+ (package {@code org.jboss.vfs}) - * and is in particular compatible with JBoss AS 7 and WildFly 8. + * + *

As of Spring 4.0, this class supports VFS 3.x on JBoss AS 6+ (package + * {@code org.jboss.vfs}) and is in particular compatible with JBoss AS 7 and + * WildFly 8. * *

Thanks go to Marius Bogoevici for the initial patch. * Note: This is an internal class and should not be used outside the framework.