commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1648333 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/PixelParser.java
Date Mon, 29 Dec 2014 13:24:38 GMT
Author: sebb
Date: Mon Dec 29 13:24:38 2014
New Revision: 1648333

URL: http://svn.apache.org/r1648333
Log:
Don't expose items more than the enclosing class

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/PixelParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/PixelParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/PixelParser.java?rev=1648333&r1=1648332&r2=1648333&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/PixelParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/bmp/PixelParser.java
Mon Dec 29 13:24:38 2014
@@ -25,11 +25,11 @@ import org.apache.commons.imaging.common
 
 abstract class PixelParser {
 
-    public final BmpHeaderInfo bhi;
-    public final byte[] colorTable;
-    public final byte[] imageData;
+    final BmpHeaderInfo bhi;
+    final byte[] colorTable;
+    final byte[] imageData;
 
-    protected final InputStream is;
+    final InputStream is;
 
     public PixelParser(final BmpHeaderInfo bhi, final byte[] colorTable, final byte[] imageData)
{
         this.bhi = bhi;
@@ -41,7 +41,7 @@ abstract class PixelParser {
 
     public abstract void processImage(ImageBuilder imageBuilder) throws ImageReadException,
IOException;
 
-    protected int getColorTableRGB(int index) {
+    int getColorTableRGB(int index) {
         index *= 4;
         final int blue = 0xff & colorTable[index + 0];
         final int green = 0xff & colorTable[index + 1];



Mime
View raw message