This can be static final as well.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2727 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -175,12 +175,5 @@ public class MailUtil
|
|||||||
"[-a-zA-Z0-9]+(\\.[-a-zA-Z0-9]+)*\\.[-a-zA-Z0-9]+)$";
|
"[-a-zA-Z0-9]+(\\.[-a-zA-Z0-9]+)*\\.[-a-zA-Z0-9]+)$";
|
||||||
|
|
||||||
/** A compiled version of our email regular expression. */
|
/** A compiled version of our email regular expression. */
|
||||||
protected static Pattern _emailre;
|
protected static final Pattern _emailre = Pattern.compile(EMAIL_REGEX);
|
||||||
static {
|
|
||||||
try {
|
|
||||||
_emailre = Pattern.compile(EMAIL_REGEX);
|
|
||||||
} catch (PatternSyntaxException pse) {
|
|
||||||
log.warning("Unable to initialize email regexp?!", pse);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user