Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-416

CreditCardValidator default ctor disagrees with Javadoc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.7
    • None
    • None

    Description

      The CreditCardValidator class Javadoc says:

      "By default, all supported card types are allowed."

      However the default constructor says it supports:

      AMEX, VISA, MASTERCARD and DISCOVER

      which agrees with the code.

      It looks as though the default constructor was not updated when new validators were added.

      I think it would make more sense to include all the provided validators in the default, but this could be considered a change of behaviour.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: