mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 20:17:25 +00:00
fix #1657: EmptyLombokFileObject: file:// URI must not contain authority part.
fix degrade of #1617, the file URI must starts with 'file:///', not 'file://'.
This commit is contained in:
1 parent
de01d1eae1
commit
888546fd9f
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 {
|
||||
|
||||
Reference in new issue
Block a user