diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-04-16 22:01:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-16 22:01:55 +0200 |
commit | 3a8c8cad0a38e767284864f9591e42d84be7643c (patch) | |
tree | dc88e305aea7d98bd7f3bcb198e6074db0e4f4ba /src/core | |
parent | e90064cf1d1f5802e4fed5a59f3a2b05776e9bc1 (diff) | |
parent | 23a13c452782d32aebc02971f71c392efeee30d5 (diff) | |
download | lombok-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…
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/javac/apt/EmptyLombokFileObject.java | 2 |
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 { |