[jboss-cvs] JBossAS SVN: r94954 - projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 15 11:24:48 EDT 2009
Author: david.lloyd at jboss.com
Date: 2009-10-15 11:24:47 -0400 (Thu, 15 Oct 2009)
New Revision: 94954
Modified:
projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VirtualFile.java
Log:
Fix exceptions and clean up javadoc
Modified: projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VirtualFile.java
===================================================================
--- projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VirtualFile.java 2009-10-15 15:20:37 UTC (rev 94953)
+++ projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VirtualFile.java 2009-10-15 15:24:47 UTC (rev 94954)
@@ -28,6 +28,7 @@
import java.net.URI;
import java.net.URL;
import java.net.URISyntaxException;
+import java.net.MalformedURLException;
import java.security.CodeSigner;
import java.security.cert.Certificate;
import java.util.ArrayList;
@@ -158,13 +159,12 @@
/**
* Whether it is a simple leaf of the VFS, i.e. whether it can contain other files
*
- * @return true if a simple file.
+ * @return {@code true} if a simple file
*
- * @throws IOException for any problem accessing the virtual file system
* @deprecated use {@link #isDirectory()} instead
*/
@Deprecated
- public boolean isLeaf() throws IOException {
+ public boolean isLeaf() {
return !isDirectory();
}
@@ -172,8 +172,6 @@
* Determine whether the named virtual file is a directory.
*
* @return {@code true} if it is a directory, {@code false} otherwise
- *
- * @throws IOException if an I/O error occurs
*/
public boolean isDirectory() {
final VFS.Mount mount = VFS.getMount(this);
@@ -198,9 +196,7 @@
/**
* Delete this virtual file
*
- * @return true if file was deleted
- *
- * @throws IOException if an error occurs
+ * @return {@code true} if file was deleted
*/
public boolean delete() {
final VFS.Mount mount = VFS.getMount(this);
@@ -267,8 +263,6 @@
* created by submounts.
*
* @return the children
- *
- * @throws IOException for any problem accessing the virtual file system
*/
public List<VirtualFile> getChildren() {
if (!isDirectory())
@@ -399,9 +393,9 @@
*
* @return the url
*
- * @throws IOException for any io error
+ * @throws MalformedURLException if the URL is somehow malformed
*/
- public URL toURL() throws IOException {
+ public URL toURL() throws MalformedURLException {
return VFSUtils.getVirtualURL(this);
}
More information about the jboss-cvs-commits
mailing list