diff --git a/spring-core/src/main/java/org/springframework/core/io/AbstractResource.java b/spring-core/src/main/java/org/springframework/core/io/AbstractResource.java index 9f35ead87fe..cf3266672f9 100644 --- a/spring-core/src/main/java/org/springframework/core/io/AbstractResource.java +++ b/spring-core/src/main/java/org/springframework/core/io/AbstractResource.java @@ -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 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 message, Throwable ex) { + Log logger = LogFactory.getLog(getClass()); + if (logger.isDebugEnabled()) { + logger.debug(message.get(), ex); + } + } + }