commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [lang] No need to nest.
Date Tue, 10 Oct 2017 18:02:08 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 33a1f82a1 -> 060e66bf9


No need to nest.

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/060e66bf
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/060e66bf
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/060e66bf

Branch: refs/heads/master
Commit: 060e66bf995177adfc4d73a2a4c9bea70dc5e441
Parents: 33a1f82
Author: Gary Gregory <ggregory@apache.org>
Authored: Tue Oct 10 12:02:06 2017 -0600
Committer: Gary Gregory <ggregory@apache.org>
Committed: Tue Oct 10 12:02:06 2017 -0600

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/060e66bf/src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java b/src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java
index 1a7462b..860cdc0 100644
--- a/src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java
+++ b/src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java
@@ -99,8 +99,7 @@ class GmtTimeZone extends TimeZone {
     public boolean equals(Object other) {
         if (!(other instanceof GmtTimeZone)) {
             return false;
-        } else {
-            return zoneId == ((GmtTimeZone) other).zoneId;
         }
+        return zoneId == ((GmtTimeZone) other).zoneId;
     }
 }


Mime
View raw message