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:
@@ -82,11 +82,8 @@ public class ActionScriptSource
|
|||||||
|
|
||||||
public void setComment (String comment) {
|
public void setComment (String comment) {
|
||||||
if (comment.indexOf("@Override") != -1) {
|
if (comment.indexOf("@Override") != -1) {
|
||||||
if (comment.trim().startsWith("//")) {
|
|
||||||
// handle // @Override // comment
|
|
||||||
comment = comment.replaceFirst("// ?", "");
|
|
||||||
}
|
|
||||||
comment = comment.replaceAll("@Override ?", "");
|
comment = comment.replaceAll("@Override ?", "");
|
||||||
|
comment = comment.replaceFirst("// //", "//"); // handle // @Override // comment
|
||||||
definition = "override " + definition;
|
definition = "override " + definition;
|
||||||
}
|
}
|
||||||
// trim blank lines from start
|
// trim blank lines from start
|
||||||
|
|||||||
Reference in New Issue
Block a user