commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1221336 - /commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/common/itu_t4/T4AndT6Compression.java
Date Tue, 20 Dec 2011 16:54:55 GMT
Author: sebb
Date: Tue Dec 20 16:54:54 2011
New Revision: 1221336

URL: http://svn.apache.org/viewvc?rev=1221336&view=rev
Log:
Javadoc

Modified:
    commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/common/itu_t4/T4AndT6Compression.java

Modified: commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/common/itu_t4/T4AndT6Compression.java
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/common/itu_t4/T4AndT6Compression.java?rev=1221336&r1=1221335&r2=1221336&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/common/itu_t4/T4AndT6Compression.java
(original)
+++ commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/common/itu_t4/T4AndT6Compression.java
Tue Dec 20 16:54:54 2011
@@ -82,8 +82,8 @@ public class T4AndT6Compression {
      * @param compressed
      * @param width
      * @param height
-     * @return
-     * @throws
+     * @return the decompressed data
+     * @throws ImageReadException
      */
     public static byte[] decompressModifiedHuffman(byte[] compressed, int width, int height)
throws ImageReadException {
         BitInputStreamFlexible inputStream = new BitInputStreamFlexible(
@@ -117,7 +117,7 @@ public class T4AndT6Compression {
      * @param compressed
      * @param width
      * @param height
-     * @return
+     * @return the decompressed data
      * @throws ImageReadException
      */
     public static byte[] decompressT4_1D(byte[] compressed, int width, int height, boolean
hasFill) throws ImageReadException {
@@ -169,7 +169,7 @@ public class T4AndT6Compression {
      * @param compressed
      * @param width
      * @param height
-     * @return
+     * @return the decompressed data
      * @throws ImageReadException
      */
     public static byte[] decompressT4_2D(byte[] compressed, int width, int height, boolean
hasFill) throws ImageReadException {
@@ -281,7 +281,7 @@ public class T4AndT6Compression {
      * @param compressed
      * @param width
      * @param height
-     * @return
+     * @return the decompressed data
      * @throws ImageReadException
      */
     public static byte[] decompressT6(byte[] compressed, int width, int height) throws ImageReadException
{
@@ -385,8 +385,9 @@ public class T4AndT6Compression {
     
     private static int nextChangingElement(int[] line, int currentColour, int start) {
         int position;
-        for (position = start; position < line.length && line[position] == currentColour;
position++)
-            ;
+        for (position = start; position < line.length && line[position] == currentColour;
position++) {
+            // noop
+        }
         return position < line.length ? position : line.length;
     }
     



Mime
View raw message