diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-08-13 04:19:39 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-08-13 04:19:39 +0200 |
commit | 8d012f6734146fcd22a7d69f7389dc9de1897c2d (patch) | |
tree | 5a8c5c94181dfde14d58936592e396dbc462fc89 | |
parent | fd8e08cb784db38d527c684681a88fc59931f713 (diff) | |
download | lombok-8d012f6734146fcd22a7d69f7389dc9de1897c2d.tar.gz lombok-8d012f6734146fcd22a7d69f7389dc9de1897c2d.tar.bz2 lombok-8d012f6734146fcd22a7d69f7389dc9de1897c2d.zip |
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.
-rw-r--r-- | src/delombok/lombok/delombok/CommentPreservingParser.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/CommentPreservingParser.java b/src/delombok/lombok/delombok/CommentPreservingParser.java index 1cd2e5b1..87c02dcd 100644 --- a/src/delombok/lombok/delombok/CommentPreservingParser.java +++ b/src/delombok/lombok/delombok/CommentPreservingParser.java @@ -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)); } |