aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTakuya Murakami <tmurakam@tmurakam.org>2018-04-16 23:40:11 +0900
committerTakuya Murakami <tmurakam@tmurakam.org>2018-04-17 00:18:26 +0900
commit888546fd9ff80a812022bd9e8738b7bb9b5ce284 (patch)
treedc88e305aea7d98bd7f3bcb198e6074db0e4f4ba /src/core
parentde01d1eae16a61e1d3b4cafedd32e59f98396000 (diff)
downloadlombok-888546fd9ff80a812022bd9e8738b7bb9b5ce284.tar.gz
lombok-888546fd9ff80a812022bd9e8738b7bb9b5ce284.tar.bz2
lombok-888546fd9ff80a812022bd9e8738b7bb9b5ce284.zip
fix #1657: EmptyLombokFileObject: file:// URI must not contain authority part.
fix degrade of #1617, the file URI must starts with 'file:///', not 'file://'.
Diffstat (limited to 'src/core')
-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 0f9a697d..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 {