commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1515228 - /commons/proper/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java
Date Sun, 18 Aug 2013 21:46:25 GMT
Author: sebb
Date: Sun Aug 18 21:46:24 2013
New Revision: 1515228

URL: http://svn.apache.org/r1515228
Log:
Make immutable private fields final

Modified:
    commons/proper/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java

Modified: commons/proper/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java
URL: http://svn.apache.org/viewvc/commons/proper/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java?rev=1515228&r1=1515227&r2=1515228&view=diff
==============================================================================
--- commons/proper/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java
(original)
+++ commons/proper/jci/trunk/compilers/javac/src/main/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java
Sun Aug 18 21:46:24 2013
@@ -25,18 +25,22 @@ import org.apache.commons.jci.problems.C
  */
 public class JavacCompilationProblem implements CompilationProblem {
 
-    private int endCoumn;
-    private int endLine;
-    private String fileName;
-    private String message;
-    private int startCoumn;
-    private int startLine;
-    private boolean isError;
+    private final int endCoumn;
+    private final int endLine;
+    private final String fileName;
+    private final String message;
+    private final int startCoumn;
+    private final int startLine;
+    private final boolean isError;
 
     public JavacCompilationProblem(String message, boolean isError) {
         this.message = message;
         this.isError = isError;
         this.fileName = "";
+        this.startLine = 0;
+        this.startCoumn = 0;
+        this.endCoumn = 0;
+        this.endLine = 0;
     }
 
     public JavacCompilationProblem(String fileName, boolean isError, int startLine, int startCoumn,
int endLine, int endCoumn, String message) {



Mime
View raw message