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:
samskivert
2010-02-09 21:16:52 +00:00
parent 28a48351fa
commit 053d4c6196
+1 -8
View File
@@ -175,12 +175,5 @@ public class MailUtil
"[-a-zA-Z0-9]+(\\.[-a-zA-Z0-9]+)*\\.[-a-zA-Z0-9]+)$";
/** A compiled version of our email regular expression. */
protected static Pattern _emailre;
static {
try {
_emailre = Pattern.compile(EMAIL_REGEX);
} catch (PatternSyntaxException pse) {
log.warning("Unable to initialize email regexp?!", pse);
}
}
protected static final Pattern _emailre = Pattern.compile(EMAIL_REGEX);
}