From cf8501e1851ce956a5069677420f34df297b044a Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Sun, 5 Apr 2020 23:39:23 +0200 Subject: [PATCH] Remove redundant "if" statement --- .../main/java/org/jeasy/rules/core/ActionMethodOrderBean.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/easy-rules-core/src/main/java/org/jeasy/rules/core/ActionMethodOrderBean.java b/easy-rules-core/src/main/java/org/jeasy/rules/core/ActionMethodOrderBean.java index 4fa79c7..61fb28d 100644 --- a/easy-rules-core/src/main/java/org/jeasy/rules/core/ActionMethodOrderBean.java +++ b/easy-rules-core/src/main/java/org/jeasy/rules/core/ActionMethodOrderBean.java @@ -68,9 +68,7 @@ class ActionMethodOrderBean implements Comparable { ActionMethodOrderBean that = (ActionMethodOrderBean) o; if (order != that.order) return false; - if (!method.equals(that.method)) return false; - - return true; + return method.equals(that.method); } @Override