aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-04-16 22:01:55 +0200
committerGitHub <noreply@github.com>2018-04-16 22:01:55 +0200
commit3a8c8cad0a38e767284864f9591e42d84be7643c (patch)
treedc88e305aea7d98bd7f3bcb198e6074db0e4f4ba
parente90064cf1d1f5802e4fed5a59f3a2b05776e9bc1 (diff)
parent23a13c452782d32aebc02971f71c392efeee30d5 (diff)
downloadlombok-3a8c8cad0a38e767284864f9591e42d84be7643c.tar.gz
lombok-3a8c8cad0a38e767284864f9591e42d84be7643c.tar.bz2
lombok-3a8c8cad0a38e767284864f9591e42d84be7643c.zip
Merge pull request #1660 from tmurakam/feature/fix-1657-fileobject-uri
fix #1657: EmptyLombokFileObject: file:// URI must not contain author…
-rw-r--r--src/core/lombok/javac/apt/EmptyLombokFileObject.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/apt/EmptyLombokFileObject.java b/src/core/lombok/javac/apt/EmptyLombokFileObject.java
index 43491213..84bb00e4 100644
--- a/src/core/lombok/javac/apt/EmptyLombokFileObject.java
+++ b/src/core/lombok/javac/apt/EmptyLombokFileObject.java
@@ -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 {