Skip to content

Commit

Permalink
fix: fix the code smell warnings in ClasspathResource
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatanabe committed Aug 29, 2023
1 parent be8ce17 commit d470552
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public InputStream getInputStream() throws IOException {
* available; Next, the ClassLoader that loaded the ResourceLoader class will be used as fallback.
* Finally, if even the system ClassLoader could not access resource as stream, return null.
*/
@SuppressWarnings("squid:S1181")
private InputStream getResourceAsStreamWithFallback(String path) {
// Try loading the resource from the same artifact as this class
InputStream in = getClass().getResourceAsStream(path);
Expand Down

0 comments on commit d470552

Please sign in to comment.