From 0ff8493544253e310620f2cdfcbd157be07a0a51 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Fri, 27 Jun 2014 13:03:36 +0000 Subject: [PATCH] Statement unnecessarily nested within else clause. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606082 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/lang3/event/EventUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/event/EventUtils.java b/src/main/java/org/apache/commons/lang3/event/EventUtils.java index cf07adc83..fc19b9b16 100644 --- a/src/main/java/org/apache/commons/lang3/event/EventUtils.java +++ b/src/main/java/org/apache/commons/lang3/event/EventUtils.java @@ -111,9 +111,8 @@ public class EventUtils { if (eventTypes.isEmpty() || eventTypes.contains(method.getName())) { if (hasMatchingParametersMethod(method)) { return MethodUtils.invokeMethod(target, methodName, parameters); - } else { - return MethodUtils.invokeMethod(target, methodName); } + return MethodUtils.invokeMethod(target, methodName); } return null; }