commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r759308 - in /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2: BZip2CompressorInputStream.java BZip2CompressorOutputStream.java
Date Fri, 27 Mar 2009 19:19:45 GMT
Author: sebb
Date: Fri Mar 27 19:19:44 2009
New Revision: 759308

URL: http://svn.apache.org/viewvc?rev=759308&view=rev
Log:
Name changed; remove unnecessary casts

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java?rev=759308&r1=759307&r2=759308&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
Fri Mar 27 19:19:44 2009
@@ -96,7 +96,7 @@
     private BZip2CompressorInputStream.Data data;
 
     /**
-     * Constructs a new CBZip2InputStream which decompresses bytes read from the
+     * Constructs a new BZip2CompressorInputStream which decompresses bytes read from the
      * specified stream.
      * 
      * <p>

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java?rev=759308&r1=759307&r2=759308&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorOutputStream.java
Fri Mar 27 19:19:44 2009
@@ -30,7 +30,7 @@
  * <p>
  * The compression requires large amounts of memory. Thus you should call the
  * {@link #close() close()} method as soon as possible, to force
- * <tt>CBZip2OutputStream</tt> to release the allocated memory.
+ * <tt>BZip2CompressorOutputStream</tt> to release the allocated memory.
  * </p>
  *
  * <p> You can shrink the amount of allocated memory and maybe raise
@@ -47,7 +47,7 @@
  * </pre>
  *
  * <p> To get the memory required for decompression by {@link
- * CBZip2InputStream CBZip2InputStream} use </p>
+ * BZip2CompressorInputStream} use </p>
  *
  * <pre>
  * &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
@@ -112,7 +112,7 @@
  * </table>
  *
  * <p>
- * For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
+ * For decompression <tt>BZip2CompressorInputStream</tt> allocates less memory
if the
  * bzipped input is smaller than one block.
  * </p>
  *
@@ -1620,7 +1620,7 @@
 
                 while (true) {
                     while (unLo <= unHi) {
-                        final int n = ((int) block[fmap[unLo] + d1] & 0xff)
+                        final int n = (block[fmap[unLo] + d1] & 0xff)
                             - med;
                         if (n == 0) {
                             final int temp = fmap[unLo];
@@ -1634,7 +1634,7 @@
                     }
 
                     while (unLo <= unHi) {
-                        final int n = ((int) block[fmap[unHi] + d1] & 0xff)
+                        final int n = (block[fmap[unHi] + d1] & 0xff)
                             - med;
                         if (n == 0) {
                             final int temp = fmap[unHi];



Mime
View raw message