You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Martin Wiesner (Jira)" <ji...@apache.org> on 2024/07/16 08:13:00 UTC
[jira] [Resolved] (OPENNLP-1597) Use isEmpty instead of equals comparison against empty string
[ https://issues.apache.org/jira/browse/OPENNLP-1597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Wiesner resolved OPENNLP-1597.
-------------------------------------
Resolution: Fixed
> Use isEmpty instead of equals comparison against empty string
> -------------------------------------------------------------
>
> Key: OPENNLP-1597
> URL: https://issues.apache.org/jira/browse/OPENNLP-1597
> Project: OpenNLP
> Issue Type: Improvement
> Affects Versions: 2.3.3
> Reporter: Martin Wiesner
> Assignee: Martin Wiesner
> Priority: Trivial
> Fix For: 2.4.0
>
>
> Code inspection shows, several classes have equals() checks against empty String in order to validate parameters / enforce constraints on parameters.
> This can be simplified and made "clearer" for devs so that "isEmpty()" is used.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)