You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Ling Mao (Jira)" <ji...@apache.org> on 2021/05/28 08:04:00 UTC
[jira] [Resolved] (ZOOKEEPER-4300) Simplify assignment statements
of boolean
[ https://issues.apache.org/jira/browse/ZOOKEEPER-4300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ling Mao resolved ZOOKEEPER-4300.
---------------------------------
Resolution: Fixed
> Simplify assignment statements of boolean
> -----------------------------------------
>
> Key: ZOOKEEPER-4300
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4300
> Project: ZooKeeper
> Issue Type: Improvement
> Reporter: LiAoNan
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> {code:java}
> 'limitStats.getByteHardLimit() > -1 ? true : false' can be simplified to 'limitStats.getByteHardLimit() > -1'
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)