@Test public void testSupports() { assertTrue(new ConfirmPasswordResetValidator().supports(PasswordReset.class)); assertFalse(new ConfirmPasswordResetValidator().supports(SystemCodes.class)); }
@SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return PasswordReset.class.isAssignableFrom(clazz); }
ConfirmPasswordResetValidator implements Validator { @SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return PasswordReset.class.isAssignableFrom(clazz); } }
ConfirmPasswordResetValidator implements Validator { @SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return PasswordReset.class.isAssignableFrom(clazz); }  }
ConfirmPasswordResetValidator implements Validator { @SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return PasswordReset.class.isAssignableFrom(clazz); }  @SuppressWarnings("rawtypes") boolean supports(Class clazz); void validate(Object clazz, Errors e); }
ConfirmPasswordResetValidator implements Validator { @SuppressWarnings("rawtypes") public boolean supports(Class clazz) { return PasswordReset.class.isAssignableFrom(clazz); }  @SuppressWarnings("rawtypes") boolean supports(Class clazz); void validate(Object clazz, Errors e);  }