Stop if we get to a generic type declaration.

This commit is contained in:
Michael Bayne
2007-02-20 19:09:13 +00:00
parent 3277012a55
commit 9556b9b0a2
@@ -363,5 +363,5 @@ public class GenRecordTask extends Task
/** A regular expression for matching the class or interface declaration. */ /** A regular expression for matching the class or interface declaration. */
protected static final Pattern NAME_PATTERN = Pattern.compile( protected static final Pattern NAME_PATTERN = Pattern.compile(
"^\\s*public\\s+(?:abstract\\s+)?(interface|class)\\s+(\\S+)(\\W|$)"); "^\\s*public\\s+(?:abstract\\s+)?(interface|class)\\s+(\\S+)(\\W|$)(<)?");
} }