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

Avoid repeated checking in addViolation in NumericValueConstraint and AlphaNumKeyContraint

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None

      Description

      addViolation is very verbose and does check for null on every violation. Instead we can initialize violations as non-null just return null from check if the list is empty.

        Attachments

          Activity

            People

            • Assignee:
              vickyuec Vikram Srivastava
              Reporter:
              vickyuec Vikram Srivastava
            • 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