Skip to content

Commit

Permalink
Fix for issue prestodb#1
Browse files Browse the repository at this point in the history
 replaced slash by File.separateChar
  • Loading branch information
Megaprog committed Dec 16, 2018
1 parent f3f8f50 commit f5943c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private List<Class<?>> findImplementationsOf(Class<?> implementationTemplate, UR
List<Class<?>> implementations = Lists.newArrayList();
List<String> classes = FileUtils.getFileNames(classesDirectory, "**/*.class", null, false);
for (String classPath : classes) {
String className = classPath.substring(0, classPath.length() - 6).replace('/', '.');
String className = classPath.substring(0, classPath.length() - 6).replace(File.separatorChar, '.');
try {
Class<?> implementation = searchRealm.loadClass(implementationTemplate.getName());
Class<?> clazz = searchRealm.loadClass(className);
Expand Down

0 comments on commit f5943c5

Please sign in to comment.