We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb8b4e8 commit 2914db8Copy full SHA for 2914db8
src/main/java/org/apache/ibatis/io/VFS.java
@@ -58,11 +58,9 @@ static VFS createVFS() {
58
Class<? extends VFS> impl = impls.get(i);
59
try {
60
vfs = impl.getDeclaredConstructor().newInstance();
61
- if (!vfs.isValid()) {
62
- if (log.isDebugEnabled()) {
63
- log.debug("VFS implementation " + impl.getName() +
64
- " is not valid in this environment.");
65
- }
+ if (!vfs.isValid() && log.isDebugEnabled()) {
+ log.debug("VFS implementation " + impl.getName()
+ + " is not valid in this environment.");
66
}
67
} catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
68
log.error("Failed to instantiate " + impl, e);
0 commit comments