commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1797639 - /commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java
Date Mon, 05 Jun 2017 11:10:40 GMT
Author: britter
Date: Mon Jun  5 11:10:39 2017
New Revision: 1797639

URL: http://svn.apache.org/viewvc?rev=1797639&view=rev
Log:
Local variable can be private

Modified:
    commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java

Modified: commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java?rev=1797639&r1=1797638&r2=1797639&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java (original)
+++ commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java Mon Jun  5 11:10:39
2017
@@ -641,8 +641,7 @@ public class Option implements Cloneable
             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