Do that more nicely.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2061 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -359,9 +359,9 @@ public class GenRecordTask extends Task
|
||||
protected static final String FIELDS_END = MARKER + "FIELDS END";
|
||||
|
||||
/** A regular expression for matching the package declaration. */
|
||||
protected static final Pattern PACKAGE_PATTERN = Pattern.compile("^\\s*package\\s+(\\S+)\\W");
|
||||
protected static final Pattern PACKAGE_PATTERN = Pattern.compile("^\\s*package\\s+(\\w+)\\W");
|
||||
|
||||
/** A regular expression for matching the class or interface declaration. */
|
||||
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+(\\w+)(\\W|$)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user