From 888546fd9ff80a812022bd9e8738b7bb9b5ce284 Mon Sep 17 00:00:00 2001 From: Takuya Murakami Date: Mon, 16 Apr 2018 23:40:11 +0900 Subject: fix #1657: EmptyLombokFileObject: file:// URI must not contain authority part. fix degrade of #1617, the file URI must starts with 'file:///', not 'file://'. --- src/core/lombok/javac/apt/EmptyLombokFileObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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 { -- cgit