Skip to content

Commit

Permalink
fixed the issue with class name in component
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Oct 27, 2023
1 parent 763ea96 commit d7bbed3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ fun interface ResourceReader : Function1<String, Path?> {
* Default implementation of [ResourceReader]
*/
val default: ResourceReader = ResourceReader { resourceName ->
javaClass.classLoader.getResource(resourceName)
ResourceReader::class.java
.classLoader
.getResource(resourceName)
?.toURI()
?.toPath()
.also {
Expand Down

0 comments on commit d7bbed3

Please sign in to comment.