Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3956

Improve validation of configuration and arguments with guava Predicates

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • None
    • None

    Description

      There's a few places in our code which could benefit from additional validation of arguments and configuration by using the built-in Guava Predicates. This makes some checks that we're doing a bit more readable, and enables us to do more expressive validation checks.

      Specifically, I see room for improvement in our PropertyType validators (which currently do very limited regex validation) and, to a lesser degree, o.a.a.core.util.Validator.

      I intend to replace these with proper Predicates to determine their validity.

      Attachments

        Activity

          People

            ctubbsii Christopher Tubbs
            ctubbsii Christopher Tubbs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m