You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "JongYoon Lim (JIRA)" <ji...@apache.org> on 2015/07/25 03:45:04 UTC
[jira] [Updated] (HAMA-967) Remove a meaningless checking
condition.
[ https://issues.apache.org/jira/browse/HAMA-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
JongYoon Lim updated HAMA-967:
------------------------------
Attachment: HAMA-967.patch
> Remove a meaningless checking condition.
> ----------------------------------------
>
> Key: HAMA-967
> URL: https://issues.apache.org/jira/browse/HAMA-967
> Project: Hama
> Issue Type: Bug
> Components: bsp core
> Affects Versions: 0.7.0
> Reporter: JongYoon Lim
> Priority: Trivial
> Attachments: HAMA-967.patch
>
>
> *split()* of *String* in *RPC* and *AsyncRPC* returns the array of strings. So checking *null* condition is meaningless.
> {code:java}
> String[] names = className.split("\\.", -1);
> if (names == null || names.length == 0) {
> return className;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)