commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [45/50] [abbrv] commons-cli git commit: Local variable can be private
Date Thu, 08 Jun 2017 17:37:14 GMT
Local variable can be private

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1797639 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/commons-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-cli/commit/9a048d07
Tree: http://git-wip-us.apache.org/repos/asf/commons-cli/tree/9a048d07
Diff: http://git-wip-us.apache.org/repos/asf/commons-cli/diff/9a048d07

Branch: refs/heads/master
Commit: 9a048d071f4ebb57179f6ef245dae7769be3441d
Parents: 2b57074
Author: Benedikt Ritter <britter@apache.org>
Authored: Mon Jun 5 11:10:39 2017 +0000
Committer: Benedikt Ritter <britter@apache.org>
Committed: Mon Jun 5 11:10:39 2017 +0000

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


http://git-wip-us.apache.org/repos/asf/commons-cli/blob/9a048d07/src/main/java/org/apache/commons/cli/Option.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/cli/Option.java b/src/main/java/org/apache/commons/cli/Option.java
index 96118ec..0b16059 100644
--- a/src/main/java/org/apache/commons/cli/Option.java
+++ b/src/main/java/org/apache/commons/cli/Option.java
@@ -641,8 +641,7 @@ public class Option implements Cloneable, Serializable
             return false;
         }
 
-        Option option = (Option) o;
-
+        final Option option = (Option) o;
 
         if (opt != null ? !opt.equals(option.opt) : option.opt != null)
         {


Mime
View raw message