commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1366578 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java
Date Sat, 28 Jul 2012 01:17:32 GMT
Author: sebb
Date: Sat Jul 28 01:17:31 2012
New Revision: 1366578

URL: http://svn.apache.org/viewvc?rev=1366578&view=rev
Log:
Make immutable field final

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java?rev=1366578&r1=1366577&r2=1366578&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java
Sat Jul 28 01:17:31 2012
@@ -24,10 +24,10 @@ import java.awt.image.WritableRaster;
 import java.util.Properties;
 
 public class ImageBuilder {
-    private int[] data;
-    private int width;
-    private int height;
-    private boolean hasAlpha;
+    private final int[] data;
+    private final int width;
+    private final int height;
+    private final boolean hasAlpha;
 
     public ImageBuilder(int width, int height, boolean hasAlpha) {
         data = new int[width * height];



Mime
View raw message