accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ACCUMULO-2325) Avoid repeated checking in addViolation in NumericValueConstraint and AlphaNumKeyContraint
Date Wed, 05 Feb 2014 15:54:09 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-2325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Josh Elser updated ACCUMULO-2325:
---------------------------------

    Issue Type: Improvement  (was: Bug)

> Avoid repeated checking in addViolation in NumericValueConstraint and AlphaNumKeyContraint
> ------------------------------------------------------------------------------------------
>
>                 Key: ACCUMULO-2325
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2325
>             Project: Accumulo
>          Issue Type: Improvement
>    Affects Versions: 1.7.0
>            Reporter: Vikram Srivastava
>            Assignee: Vikram Srivastava
>            Priority: Minor
>             Fix For: 1.7.0
>
>         Attachments: ACCUMULO-2325.v1.patch.txt
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message