commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1648341 - in /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif: GifBlock.java ImageContents.java ImageDescriptor.java
Date Mon, 29 Dec 2014 13:44:20 GMT
Author: sebb
Date: Mon Dec 29 13:44:20 2014
New Revision: 1648341

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

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GifBlock.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageContents.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageDescriptor.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GifBlock.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GifBlock.java?rev=1648341&r1=1648340&r2=1648341&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GifBlock.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/GifBlock.java
Mon Dec 29 13:44:20 2014
@@ -17,9 +17,9 @@
 package org.apache.commons.imaging.formats.gif;
 
 class GifBlock {
-    public final int blockCode;
+    final int blockCode;
 
-    public GifBlock(final int blockCode) {
+    GifBlock(final int blockCode) {
         this.blockCode = blockCode;
     }
 }

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageContents.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageContents.java?rev=1648341&r1=1648340&r2=1648341&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageContents.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageContents.java
Mon Dec 29 13:44:20 2014
@@ -19,12 +19,12 @@ package org.apache.commons.imaging.forma
 import java.util.List;
 
 class ImageContents {
-    public final GifHeaderInfo gifHeaderInfo;
+    final GifHeaderInfo gifHeaderInfo;
 
-    public final List<GifBlock> blocks;
-    public final byte[] globalColorTable;
+    final List<GifBlock> blocks;
+    final byte[] globalColorTable;
 
-    public ImageContents(final GifHeaderInfo gifHeaderInfo, final byte[] globalColorTable,
+    ImageContents(final GifHeaderInfo gifHeaderInfo, final byte[] globalColorTable,
             final List<GifBlock> blocks) {
         this.gifHeaderInfo = gifHeaderInfo;
         this.globalColorTable = globalColorTable;

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageDescriptor.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageDescriptor.java?rev=1648341&r1=1648340&r2=1648341&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageDescriptor.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/gif/ImageDescriptor.java
Mon Dec 29 13:44:20 2014
@@ -18,20 +18,20 @@ package org.apache.commons.imaging.forma
 
 class ImageDescriptor extends GifBlock {
 
-    public final int imageLeftPosition;
-    public final int imageTopPosition;
-    public final int imageWidth;
-    public final int imageHeight;
-    public final byte packedFields;
-    public final boolean localColorTableFlag;
-    public final boolean interlaceFlag;
-    public final boolean sortFlag;
-    public final byte sizeOfLocalColorTable;
+    final int imageLeftPosition;
+    final int imageTopPosition;
+    final int imageWidth;
+    final int imageHeight;
+    final byte packedFields;
+    final boolean localColorTableFlag;
+    final boolean interlaceFlag;
+    final boolean sortFlag;
+    final byte sizeOfLocalColorTable;
 
-    public final byte[] localColorTable;
-    public final byte[] imageData;
+    final byte[] localColorTable;
+    final byte[] imageData;
 
-    public ImageDescriptor(final int blockCode, final int imageLeftPosition,
+    ImageDescriptor(final int blockCode, final int imageLeftPosition,
             final int imageTopPosition, final int imageWidth, final int imageHeight,
             final byte packedFields, final boolean localColorTableFlag,
             final boolean interlaceFlag, final boolean sortFlag,



Mime
View raw message