Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug-fix resource loader on windows

  • Loading branch information...
commit 51813c8934b53eb7771630fb7404d860f2861cfc 1 parent e61aaab
@aparra aparra authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/main/java/br/com/bfgex/resource/ResourceLoader.java
View
4 src/main/java/br/com/bfgex/resource/ResourceLoader.java
@@ -1,6 +1,5 @@
package br.com.bfgex.resource;
-import java.io.File;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
@@ -11,8 +10,7 @@
public static Map<Integer, Set<String>> of(String resource) {
Map<Integer, Set<String>> resourceItemsLengthMap = new HashMap<Integer, Set<String>>();
-
- Scanner sc = new Scanner(ResourceLoader.class.getResourceAsStream(File.separator + resource), "UTF-8");
+ Scanner sc = new Scanner(ResourceLoader.class.getResourceAsStream("/" + resource), "UTF-8");
while (sc.hasNext()) {
String element = sc.next();
Please sign in to comment.
Something went wrong with that request. Please try again.