parent
5c4cde7853
commit
46cb5ab135
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 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.
|
||||
|
|
@ -75,13 +75,6 @@ public abstract class AbstractResource implements Resource {
|
|||
}
|
||||
}
|
||||
|
||||
private void debug(Supplier<String> message, Throwable ex) {
|
||||
Log logger = LogFactory.getLog(getClass());
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug(message.get(), ex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This implementation always returns {@code true} for a resource
|
||||
* that {@link #exists() exists} (revised as of 5.1).
|
||||
|
|
@ -257,4 +250,11 @@ public abstract class AbstractResource implements Resource {
|
|||
return getDescription();
|
||||
}
|
||||
|
||||
private void debug(Supplier<String> message, Throwable ex) {
|
||||
Log logger = LogFactory.getLog(getClass());
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug(message.get(), ex);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue