commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1763974 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcBlock.java
Date Sun, 09 Oct 2016 13:12:29 GMT
Author: sebb
Date: Sun Oct  9 13:12:28 2016
New Revision: 1763974

URL: http://svn.apache.org/viewvc?rev=1763974&view=rev
Log:
Not used outside the package, so don't expose state unnecessarily

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcBlock.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcBlock.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcBlock.java?rev=1763974&r1=1763973&r2=1763974&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcBlock.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcBlock.java
Sun Oct  9 13:12:28 2016
@@ -19,19 +19,19 @@ package org.apache.commons.imaging.forma
 /**
  * Represents an IPTC block, a set of key-value pairs of Photoshop IPTC data.
  */
-public class IptcBlock {
+class IptcBlock {
     public final int blockType;
     //  Only currently used by classes in the package
     final byte[] blockNameBytes; // TODO make private and provide getter?
     final byte[] blockData; // TODO make private and provide getter?
 
-    public IptcBlock(final int blockType, final byte[] blockNameBytes, final byte[] blockData)
{
+    IptcBlock(final int blockType, final byte[] blockNameBytes, final byte[] blockData) {
         this.blockData = blockData;
         this.blockNameBytes = blockNameBytes;
         this.blockType = blockType;
     }
 
-    public boolean isIPTCBlock() {
+    boolean isIPTCBlock() {
         return blockType == IptcConstants.IMAGE_RESOURCE_BLOCK_IPTC_DATA;
     }
 }



Mime
View raw message