You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Vikram Srivastava (JIRA)" <ji...@apache.org> on 2014/02/05 10:16:09 UTC
[jira] [Updated] (ACCUMULO-2325) Avoid repeated checking in
addViolation in NumericValueConstraint and AlphaNumKeyContraint
[ https://issues.apache.org/jira/browse/ACCUMULO-2325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vikram Srivastava updated ACCUMULO-2325:
----------------------------------------
Attachment: ACCUMULO-2325.v1.patch.txt
Attached patch against master.
> 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: Bug
> 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)