Handle // @Override // blah comments more robustly.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4669 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-04-18 16:35:05 +00:00
parent ad8acdbd1d
commit 8f59462972
@@ -82,11 +82,8 @@ public class ActionScriptSource
public void setComment (String comment) {
if (comment.indexOf("@Override") != -1) {
if (comment.trim().startsWith("//")) {
// handle // @Override // comment
comment = comment.replaceFirst("// ?", "");
}
comment = comment.replaceAll("@Override ?", "");
comment = comment.replaceFirst("// //", "//"); // handle // @Override // comment
definition = "override " + definition;
}
// trim blank lines from start