You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2009/05/12 21:08:45 UTC

[jira] Commented: (SOLR-1159) JmxMonitoredMap uses & when && is needed

    [ https://issues.apache.org/jira/browse/SOLR-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708574#action_12708574 ] 

Shalin Shekhar Mangar commented on SOLR-1159:
---------------------------------------------

Ah, my bad. Thanks for spotting this.

> JmxMonitoredMap uses & when && is needed
> ----------------------------------------
>
>                 Key: SOLR-1159
>                 URL: https://issues.apache.org/jira/browse/SOLR-1159
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>            Priority: Minor
>             Fix For: 1.4
>
>
>       if (staticStats.contains(attribute) && attribute != null
>               & attribute.length() > 0) {
> Uses boolean &, but boolean & does not short circuit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.