Commit 839fe3b4 authored by Adam Knapp's avatar Adam Knapp
Browse files

Minor improvements of comment generation



Change-Id: I3fa774a6ad6940a7e99e29e455aecf8c64ab0698
Signed-off-by: default avatarAdam Knapp <adam.knapp@sigmatechnology.se>
parent ac2b508d
......@@ -18,7 +18,7 @@ import java.text.MessageFormat;
public final class CommentUtils {
private static final String HEADER_COMMENT_TEXT =
"{0}This Java file was generated by the TITAN Designer Eclipse plug-in version {1}\n"
+ "{0}for ({2}@{3})\n";
+ "{0}for ({2}@{3})";
public static final String COPYRIGHT_TEXT = "Copyright (c) 2000-2021 Ericsson Telecom AB";
public static final String DO_NOT_EDIT_TEXT = "Do not edit this file unless you know what you are doing!";
......@@ -62,7 +62,7 @@ public final class CommentUtils {
* @return The header comment
*/
public static String getHeaderCommentsWithCopyright(final String commentString, final String versionString) {
return getHeaderComments(commentString, versionString) + commentString + COPYRIGHT_TEXT + "\n\n";
return getHeaderComments(commentString, versionString) + "\n" + commentString + COPYRIGHT_TEXT + "\n\n";
}
/**
......@@ -73,6 +73,6 @@ public final class CommentUtils {
* @return The header comment
*/
public static String getHeaderCommentsWithCopyrightAndDoNotEdit(final String commentString, final String versionString) {
return getHeaderCommentsWithCopyright(commentString, versionString) + commentString + DO_NOT_EDIT_TEXT + "\n";
return getHeaderCommentsWithCopyright(commentString, versionString) + "\n" + commentString + DO_NOT_EDIT_TEXT + "\n";
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment