mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
Skip PostCompiler for empty byte arrays
This commit is contained in:
1 parent
2ac4faf14c
commit
0736f29174
1 file changed
+6
-4
@@ -72,10 +72,12 @@ public final class PostCompiler {
|
||||
// no need to call super
|
||||
byte[] original = toByteArray();
|
||||
byte[] copy = null;
|
||||
try {
|
||||
copy = applyTransformations(original, fileName, diagnostics);
|
||||
} catch (Exception e) {
|
||||
diagnostics.addWarning(String.format("Error during the transformation of '%s'; no post-compilation has been applied", fileName));
|
||||
if (original.length > 0) {
|
||||
try {
|
||||
copy = applyTransformations(original, fileName, diagnostics);
|
||||
} catch (Exception e) {
|
||||
diagnostics.addWarning(String.format("Error during the transformation of '%s'; no post-compilation has been applied", fileName));
|
||||
}
|
||||
}
|
||||
|
||||
if (copy == null) {
|
||||
|
||||
Reference in new issue
Block a user