commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1648349 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/ImageResourceBlock.java
Date Mon, 29 Dec 2014 14:22:33 GMT
Author: sebb
Date: Mon Dec 29 14:22:33 2014
New Revision: 1648349

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

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/ImageResourceBlock.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/ImageResourceBlock.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/ImageResourceBlock.java?rev=1648349&r1=1648348&r2=1648349&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/ImageResourceBlock.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/ImageResourceBlock.java
Mon Dec 29 14:22:33 2014
@@ -21,17 +21,17 @@ import java.io.UnsupportedEncodingExcept
 import org.apache.commons.imaging.util.Debug;
 
 class ImageResourceBlock {
-    protected final int id;
-    protected final byte[] nameData;
-    protected final byte[] data;
+    final int id;
+    final byte[] nameData;
+    final byte[] data;
 
-    public ImageResourceBlock(final int id, final byte[] nameData, final byte[] data) {
+    ImageResourceBlock(final int id, final byte[] nameData, final byte[] data) {
         this.id = id;
         this.nameData = nameData;
         this.data = data;
     }
 
-    public String getName() throws UnsupportedEncodingException {
+    String getName() throws UnsupportedEncodingException {
         Debug.debug("getName: " + nameData.length);
         return new String(nameData, "ISO-8859-1");
     }



Mime
View raw message