You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/12/20 18:06:12 UTC

[commons-text] branch master updated: options ivar can't be null.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git


The following commit(s) were added to refs/heads/master by this push:
     new 3baed7b  options ivar can't be null.
3baed7b is described below

commit 3baed7b80e54d7233666edcacbe34cea71e1bee0
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Dec 20 13:06:08 2020 -0500

    options ivar can't be null.
---
 .../java/org/apache/commons/text/translate/NumericEntityUnescaper.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/text/translate/NumericEntityUnescaper.java b/src/main/java/org/apache/commons/text/translate/NumericEntityUnescaper.java
index 77896fa..f9050e7 100644
--- a/src/main/java/org/apache/commons/text/translate/NumericEntityUnescaper.java
+++ b/src/main/java/org/apache/commons/text/translate/NumericEntityUnescaper.java
@@ -85,7 +85,7 @@ public class NumericEntityUnescaper extends CharSequenceTranslator {
      * @return whether the option is set
      */
     public boolean isSet(final OPTION option) {
-        return options != null && options.contains(option);
+        return options.contains(option);
     }
 
     /**