[
https://issues.apache.org/jira/browse/HDFS-13261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yiqun Lin updated HDFS-13261:
-----------------------------
Summary: Fix incorrect null value check (was: Incorrect null value check)
> Fix incorrect null value check
> ------------------------------
>
> Key: HDFS-13261
> URL: https://issues.apache.org/jira/browse/HDFS-13261
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs
> Affects Versions: 2.8.3, 3.0.0
> Reporter: Jianfei Jiang
> Assignee: Jianfei Jiang
> Priority: Minor
> Attachments: HDFS-13261.001.patch, HDFS-13261.002-branch-2.patch,
> HDFS-13261.002.patch
>
>
>
> {code:java}
> public void setZoneName(final String name) {
> Preconditions.checkNotNull(name == null)-------error parameter for
> checkNotNull
> zoneName = name;
> }
> {code}
> Like above, in 3.x, the checkNotNull function gets wrong parameter in two
> cases: \{{ZoneReencryptionStatus#setZoneName}} and
> \{{AdminHelper#HelpCommand#HelpCommand}}
> In 2.x, the error occurs once in \{{AdminHelper#HelpCommand#HelpCommand}}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]