Stub out a log call as a TODO (handle PMD issues)
diff --git a/commons-vfs2-jackrabbit2/src/main/java/org/apache/commons/vfs2/provider/webdav4/Webdav4FileObject.java b/commons-vfs2-jackrabbit2/src/main/java/org/apache/commons/vfs2/provider/webdav4/Webdav4FileObject.java
index b99284a..366790a 100644
--- a/commons-vfs2-jackrabbit2/src/main/java/org/apache/commons/vfs2/provider/webdav4/Webdav4FileObject.java
+++ b/commons-vfs2-jackrabbit2/src/main/java/org/apache/commons/vfs2/provider/webdav4/Webdav4FileObject.java
@@ -145,7 +145,7 @@
executeRequest(request);
isCheckedIn = false;
} catch (final FileSystemException ex) {
- // Ignore the exception checking out.
+ log(ex);
}
}
@@ -163,7 +163,8 @@
executeRequest(request);
isCheckedIn = true;
} catch (final Exception e) {
- // Ignore the exception. Going to throw original.
+ // Going to throw original.
+ log(ex);
}
throw ex;
}
@@ -174,7 +175,7 @@
final DavPropertySet props = getPropertyNames(fileName);
isCheckedIn = !props.contains(VersionControlledResource.CHECKED_OUT);
} catch (final FileNotFoundException fnfe) {
- // Ignore the error
+ log(fnfe);
}
}
if (!isCheckedIn) {
@@ -190,7 +191,8 @@
try {
setUserName(fileName, urlStr);
} catch (final IOException e) {
- // Ignore the exception if unable to set the user name.
+ // Unable to set the user name.
+ log(e);
}
}
((DefaultFileContent) this.file.getContent()).resetAttributes();
@@ -226,6 +228,10 @@
this(name, fileSystem, Webdav4FileSystemConfigBuilder.getInstance());
}
+ void log(Exception ex) {
+ // TODO Consider logging
+ }
+
protected Webdav4FileObject(final AbstractFileName name, final Webdav4FileSystem fileSystem,
final Webdav4FileSystemConfigBuilder builder) throws FileSystemException {
super(name, fileSystem, builder);