Permalink
Browse files

Trasform == Groovy operator to equals Java method

  • Loading branch information...
1 parent 3acb6e2 commit afff47a0fbedd03c80ab252951b05940af5a6b7e Rafael Luque committed Nov 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java/es/osoco/grails/plugins/otp/access/OneTimePasswordVoter.java
@@ -70,7 +70,7 @@ public int vote(Authentication authentication, Object object, Collection<ConfigA
}
public boolean supports(ConfigAttribute attribute) {
- return attribute != null && attribute.getAttribute() == OneTimePasswordVoter.IS_AUTHENTICATED_OTP;
+ return attribute != null && OneTimePasswordVoter.IS_AUTHENTICATED_OTP.equals(attribute.getAttribute());
}
/**

0 comments on commit afff47a

Please sign in to comment.