I looked this issue and I am confused. He uses a static block. Why would he write a single line?
What is the difference between these two?
private static Pattern email_pattern = Pattern.compile(EMAIL_PATTERN);
And
private static Pattern email_pattern;
static {
email_pattern = Pattern.compile(EMAIL_PATTERN);
}