mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-17 10:14:29 +00:00
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:
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