We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method Card.isValid() does not work:
The text was updated successfully, but these errors were encountered:
Method Card.isExpired() seems to be wrong.
This code makes no sense:
if (expirationMonth > 12 || expirationYear < 1) { return false; }
Probably should be:
if(expirationMonth > 12 || expirationMonth < 1) return true; // true means invalid/expired
Btw, second line in following code is useless, because Calendar.getInstance() returns current date.
Calendar cal = Calendar.getInstance(); cal.setTime(new Date()); // this is useless
Sorry, something went wrong.
@petrnohejl Yes. it should return true. Would you like to open a pull request to make these changes?
Fixed Card.isExpired per issue balanced#8
88d592d
No branches or pull requests
Method Card.isValid() does not work:
The text was updated successfully, but these errors were encountered: