You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2017/09/04 17:19:00 UTC
[jira] [Resolved] (KNOX-1020) Minor code improvements
[ https://issues.apache.org/jira/browse/KNOX-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh resolved KNOX-1020.
---------------------------------------
Resolution: Fixed
> Minor code improvements
> -----------------------
>
> Key: KNOX-1020
> URL: https://issues.apache.org/jira/browse/KNOX-1020
> Project: Apache Knox
> Issue Type: Improvement
> Reporter: Colm O hEigeartaigh
> Assignee: Colm O hEigeartaigh
> Priority: Minor
> Fix For: 0.14.0
>
>
> This task encapsulates some minor code improvements, mainly relating to the tests:
> - Use !collection.isEmpty() instead collections.size() > 0
> - Use "literal".equals(string) instead of string.equals("literal")
> - Remove all boolean == true and == false
> - Remove Vector and HashTable in a few places (test code only) where it is not required.
> - Replace new Integer with Integer.valueOf().
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)