Merge pull request #1660 from tmurakam/feature/fix-1657-fileobject-uri

fix #1657: EmptyLombokFileObject: file:// URI must not contain author…
This commit is contained in:
Reinier Zwitserloot authored and GitHub committed 2018-04-16 22:01:55 +02:00
commit 3a8c8cad0a
1 file changed
+1 -1
@@ -57,7 +57,7 @@ class EmptyLombokFileObject implements LombokFileObject {
}
@Override public URI toUri() {
return URI.create("file:///" + name);
return URI.create("file:///" + (name.startsWith("/") ? name.substring(1) : name));
}
@Override public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {