Skip to content

Commit

Permalink
Remove unneccessary reference to NGResourceLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Nov 30, 2023
1 parent c54f3be commit 1392577
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public Optional<InputStream> inputStreamForResourceWithPath( String resourcePath
final String resourcePathForClassLoader = resourcePath.substring( 1 );

// We're using this method to locate resources, in case there's more than one resource on the classpath with the same name
final Enumeration<URL> resources = NGResourceLoader.class.getClassLoader().getResources( resourcePathForClassLoader );
final Enumeration<URL> resources = JavaClasspathResourceSource.class.getClassLoader().getResources( resourcePathForClassLoader );

// We iterate through the resources and pick the first one to return. Then we log a warning if there are more resources with the same name.
while( resources.hasMoreElements() ) {
Expand Down

0 comments on commit 1392577

Please sign in to comment.