commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1004081 - /commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java
Date Mon, 04 Oct 2010 01:35:08 GMT
Author: sebb
Date: Mon Oct  4 01:35:07 2010
New Revision: 1004081

URL: http://svn.apache.org/viewvc?rev=1004081&view=rev
Log:
Immutable private fields might as well be final

Modified:
    commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java

Modified: commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java?rev=1004081&r1=1004080&r2=1004081&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java (original)
+++ commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/CommandLine.java Mon Oct
 4 01:35:07 2010
@@ -419,8 +419,8 @@ public class CommandLine {
      */
     class Argument {
 
-        private String value;
-        private boolean handleQuoting;
+        private final String value;
+        private final boolean handleQuoting;
 
         private Argument(String value, boolean handleQuoting)
         {



Mime
View raw message