mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-19 00:15:04 +00:00
Added name of compilation unit to error/warnings generated by postProcess.
This commit is contained in:
1 parent
e4845802a7
commit
1f1fd17350
2 files changed
+5
-3
No files matched your search
@@ -93,7 +93,8 @@ public class EclipsePatcher extends Agent {
|
||||
sm.addScript(ScriptBuilder.wrapMethodCall()
|
||||
.target(new MethodTarget("org.eclipse.jdt.internal.compiler.util.Util", "writeToDisk"))
|
||||
.methodToWrap(new Hook("java.io.BufferedOutputStream", "<init>", "void", "java.io.OutputStream", "int"))
|
||||
.wrapMethod(new Hook("lombok.eclipse.agent.PatchFixes", "runPostCompiler", "java.io.BufferedOutputStream", "java.io.BufferedOutputStream"))
|
||||
.wrapMethod(new Hook("lombok.eclipse.agent.PatchFixes", "runPostCompiler", "java.io.BufferedOutputStream", "java.io.BufferedOutputStream", "java.lang.String", "java.lang.String"))
|
||||
.requestExtra(StackRequest.PARAM2, StackRequest.PARAM3)
|
||||
.build());
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,8 @@ public class PatchFixes {
|
||||
return PostCompiler.wrapOutputStream(out, "TEST", DiagnosticsReceiver.CONSOLE);
|
||||
}
|
||||
|
||||
public static BufferedOutputStream runPostCompiler(BufferedOutputStream out) throws IOException {
|
||||
return new BufferedOutputStream(PostCompiler.wrapOutputStream(out, "TEST", DiagnosticsReceiver.CONSOLE));
|
||||
public static BufferedOutputStream runPostCompiler(BufferedOutputStream out, String path, String name) throws IOException {
|
||||
String fileName = path + "/" + name;
|
||||
return new BufferedOutputStream(PostCompiler.wrapOutputStream(out, fileName, DiagnosticsReceiver.CONSOLE));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user