commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1626261 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassParser.java
Date Fri, 19 Sep 2014 16:19:42 GMT
Author: sebb
Date: Fri Sep 19 16:19:42 2014
New Revision: 1626261

URL: http://svn.apache.org/r1626261
Log:
Immutable private field might as well be final

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassParser.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassParser.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassParser.java?rev=1626261&r1=1626260&r2=1626261&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassParser.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassParser.java Fri
Sep 19 16:19:42 2014
@@ -45,8 +45,8 @@ import org.apache.bcel.Constants;
 public final class ClassParser {
 
     private DataInputStream file;
-    private boolean fileOwned;
-    private String file_name;
+    private final boolean fileOwned;
+    private final String file_name;
     private String zip_file;
     private int class_name_index, superclass_name_index;
     private int major, minor; // Compiler version



Mime
View raw message