Skip to content

Commit 0652feb

Browse files
committed
Make Make ClassPathContextResource protected
Allow ClassPathContextResource to be accessed by subclasses of DefaultResourceLoader. Issue: SPR-10544
1 parent 13e4608 commit 0652feb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎spring-core/src/main/java/org/springframework/core/io/DefaultResourceLoader.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected Resource getResourceByPath(String path) {
122122
* ClassPathResource that explicitly expresses a context-relative path
123123
* through implementing the ContextResource interface.
124124
*/
125-
private static class ClassPathContextResource extends ClassPathResource implements ContextResource {
125+
protected static class ClassPathContextResource extends ClassPathResource implements ContextResource {
126126

127127
public ClassPathContextResource(String path, ClassLoader classLoader) {
128128
super(path, classLoader);

0 commit comments

Comments
 (0)