Skip to content

Commit

Permalink
Update BlackListManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
GannaChernyshova authored May 28, 2018
1 parent acdb78f commit 062c426
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private String getResource() {
ClassLoader classLoader = getClass().getClassLoader();
byte[] file = new byte[0];
try {
Path path = Paths.get(classLoader.getResource("").toURI().getPath() + "../resources/" + fileName);
Path path = Paths.get(classLoader.getResource(fileName).toURI());
if(Files.exists(path)) {
file = Files.readAllBytes(path);
return new String(file, "UTF-8");
Expand Down

0 comments on commit 062c426

Please sign in to comment.