From 8d012f6734146fcd22a7d69f7389dc9de1897c2d Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 13 Aug 2010 04:19:39 +0200 Subject: 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. --- src/delombok/lombok/delombok/CommentPreservingParser.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/delombok/lombok') 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)); } -- cgit