ExtendedMessageFormat: replace ObjectUtils#notEqual with !Objects#equals

Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/0e09bb82
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/0e09bb82
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/0e09bb82

Branch: refs/heads/master
Commit: 0e09bb82a9edc9553530f4755d4b69b282cb910c
Parents: 2166def
Author: Pascal Schumacher <pascalschumac...@gmx.net>
Authored: Sun Dec 18 18:06:44 2016 +0100
Committer: Pascal Schumacher <pascalschumac...@gmx.net>
Committed: Sun Dec 18 18:06:44 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/text/ExtendedMessageFormat.java  | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/0e09bb82/src/main/java/org/apache/commons/text/ExtendedMessageFormat.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/ExtendedMessageFormat.java 
b/src/main/java/org/apache/commons/text/ExtendedMessageFormat.java
index 617018f..949a820 100644
--- a/src/main/java/org/apache/commons/text/ExtendedMessageFormat.java
+++ b/src/main/java/org/apache/commons/text/ExtendedMessageFormat.java
@@ -16,8 +16,6 @@
  */
 package org.apache.commons.text;
 
-import org.apache.commons.lang3.ObjectUtils;
-
 import java.text.Format;
 import java.text.MessageFormat;
 import java.text.ParsePosition;
@@ -272,14 +270,14 @@ public class ExtendedMessageFormat extends MessageFormat {
         if (!super.equals(obj)) {
             return false;
         }
-        if (ObjectUtils.notEqual(getClass(), obj.getClass())) {
+        if (!Objects.equals(getClass(), obj.getClass())) {
           return false;
         }
         final ExtendedMessageFormat rhs = (ExtendedMessageFormat)obj;
-        if (ObjectUtils.notEqual(toPattern, rhs.toPattern)) {
+        if (!Objects.equals(toPattern, rhs.toPattern)) {
             return false;
         }
-        if (ObjectUtils.notEqual(registry, rhs.registry)) {
+        if (!Objects.equals(registry, rhs.registry)) {
             return false;
         }
         return true;

Reply via email to