mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
The "// Generated by delombok at ...." line at the top of delombok-produced source files now uses the system's local line-ending just like the rest of the source file, instead of posix/unix style LF.
Reported by Anthony Whitfield, fixes issue #142.
This commit is contained in:
1 parent
fd8e08cb78
commit
8d012f6734
1 file changed
+4
-1
@@ -156,7 +156,10 @@ public class CommentPreservingParser {
|
||||
}
|
||||
}
|
||||
|
||||
out.write("// Generated by delombok at " + new Date() + "\n");
|
||||
out.write("// Generated by delombok at ");
|
||||
out.write(String.valueOf(new Date()));
|
||||
out.write(System.getProperty("line.separator"));
|
||||
|
||||
compilationUnit.accept(new PrettyCommentsPrinter(out, compilationUnit, comments));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user