@Test public void baseEmailNoChange() throws Exception { Assert.assertEquals("foo@example.com", UserUtils.baseAddress("foo@example.com")); }
static String baseAddress(String email) { Matcher m = SUB_ADDRESS.matcher(email); return m.matches() ? m.group(1) + m.group(2) : email; }
UserUtils { static String baseAddress(String email) { Matcher m = SUB_ADDRESS.matcher(email); return m.matches() ? m.group(1) + m.group(2) : email; } }
UserUtils { static String baseAddress(String email) { Matcher m = SUB_ADDRESS.matcher(email); return m.matches() ? m.group(1) + m.group(2) : email; } private  UserUtils(); }
UserUtils { static String baseAddress(String email) { Matcher m = SUB_ADDRESS.matcher(email); return m.matches() ? m.group(1) + m.group(2) : email; } private  UserUtils();  }
UserUtils { static String baseAddress(String email) { Matcher m = SUB_ADDRESS.matcher(email); return m.matches() ? m.group(1) + m.group(2) : email; } private  UserUtils();   }