StringBuffer.java, [...]: Removed redundant and reordered modifiers.
authorMichael Koch <konqueror@gmx.de>
Sat, 6 Nov 2004 16:32:56 +0000 (16:32 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Sat, 6 Nov 2004 16:32:56 +0000 (16:32 +0000)
2004-11-06  Michael Koch  <konqueror@gmx.de>

       * java/lang/StringBuffer.java,
       java/lang/Throwable.java,
       java/security/spec/DSAParameterSpec.java,
       java/util/zip/ZipEntry.java,
       java/util/zip/ZipFile.java,
       java/util/zip/ZipInputStream.java,
       java/util/zip/ZipOutputStream.java:
       Removed redundant and reordered modifiers.

From-SVN: r90177

libjava/ChangeLog
libjava/java/lang/StringBuffer.java
libjava/java/lang/Throwable.java
libjava/java/security/spec/DSAParameterSpec.java
libjava/java/util/zip/ZipEntry.java
libjava/java/util/zip/ZipFile.java
libjava/java/util/zip/ZipInputStream.java
libjava/java/util/zip/ZipOutputStream.java

index 06fb5bd1df5805fc28e3bad401384b6a66afbba4..3b05c688e41fa9730a9741168c6a8deed9e95307 100644 (file)
@@ -1,3 +1,14 @@
+2004-11-06  Michael Koch  <konqueror@gmx.de>
+
+       * java/lang/StringBuffer.java,
+       java/lang/Throwable.java,
+       java/security/spec/DSAParameterSpec.java,
+       java/util/zip/ZipEntry.java,
+       java/util/zip/ZipFile.java,
+       java/util/zip/ZipInputStream.java,
+       java/util/zip/ZipOutputStream.java:
+       Removed redundant and reordered modifiers.
+
 2004-11-06  Mattias Rehnberg  <Mattias.Rehnberg@home.se>
 
        * java/io/Vector.java
index d5bd45eaa5406f90db68fd2d314a51d9ec91a164..4f04de265cabefbc89dbdcd986d1f33aa6361fe5 100644 (file)
@@ -109,7 +109,7 @@ public final class StringBuffer implements Serializable, CharSequence
   /**
    * The default capacity of a buffer.
    */
-  private final static int DEFAULT_CAPACITY = 16;
+  private static final int DEFAULT_CAPACITY = 16;
 
   /**
    * Create a new StringBuffer with default capacity 16.
index 5d29684fb99c44f5612605a5b487395373c5af3d..e082548300bc9da5d397e98b293eb517bcc6f4f6 100644 (file)
@@ -401,8 +401,7 @@ public class Throwable implements Serializable
    */
   private static class StaticData
   {
-
-    final static String nl;
+    static final String nl;
 
     static
     {
index 5c7911f7420e2c64cc200b1f699a67f46720bda1..337dc945a43d927a834f683926141783f4003c05 100644 (file)
@@ -37,16 +37,17 @@ exception statement from your version. */
 
 
 package java.security.spec;
-import java.security.interfaces.DSAParams;
+
 import java.math.BigInteger;
+import java.security.interfaces.DSAParams;
 
 /**
      DSA Parameter class Specification. Used to maintain the DSA
      Parameters.
-
      @since JDK 1.2
-
      @author Mark Benvenuto
* DSA Parameter class Specification. Used to maintain the DSA
* Parameters.
+ *
* @since 1.2
+ *
* @author Mark Benvenuto
 */
 public class DSAParameterSpec implements AlgorithmParameterSpec, DSAParams
 {
@@ -55,46 +56,46 @@ public class DSAParameterSpec implements AlgorithmParameterSpec, DSAParams
   private BigInteger g = null;
 
   /**
-     Constructs a new DSAParameterSpec with the specified p, q, and g.
-
-     @param p the prime
-     @param q the sub-prime
-     @param g the base
-  */
+   * Constructs a new DSAParameterSpec with the specified p, q, and g.
+   *
+   * @param p the prime
+   * @param q the sub-prime
+   * @param g the base
+   */
   public DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g) 
   {
     this.p = p;
     this.q = q;
     this.g = g;
   }
+  
   /**
-     Returns p for the DSA algorithm.
-
-     @return Returns the requested BigInteger
-  */
+   * Returns p for the DSA algorithm.
+   *
+   * @return Returns the requested BigInteger
+   */
   public BigInteger getP() 
   {
     return this.p;
   }
 
   /**
-     Returns p for the DSA algorithm.
-
-     @return Returns the requested BigInteger
-  */
+   * Returns p for the DSA algorithm.
+   *
+   * @return Returns the requested BigInteger
+   */
   public BigInteger getQ() 
   {
     return this.q;
   }
 
   /**
-     Returns g for the DSA algorithm.
-
-     @return Returns the requested BigInteger
-  */
+   * Returns g for the DSA algorithm.
+   *
+   * @return Returns the requested BigInteger
+   */
   public BigInteger getG()
   {
     return this.g;
   }
-
-}
+}
\ No newline at end of file
index aa14bd27e09bc28d675f7658a153665efdc8aafb..9e0ac310ef1ecb18e264dcb2c78366db1ea95153 100644 (file)
@@ -1,4 +1,4 @@
-/* java.util.zip.ZipEntry
+/* ZipEntry.java --
    Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
@@ -71,15 +71,14 @@ public class ZipEntry implements ZipConstants, Cloneable
   int flags;              /* used by ZipOutputStream */
   int offset;             /* used by ZipFile and ZipOutputStream */
 
-
   /**
    * Compression method.  This method doesn't compress at all.
    */
-  public final static int STORED      =  0;
+  public static final int STORED = 0;
   /**
    * Compression method.  This method uses the Deflater.
    */
-  public final static int DEFLATED    =  8;
+  public static final int DEFLATED = 8;
 
   /**
    * Creates a zip entry with the given name.
index 1f9ab5ed5eefab8a948aa2951be937bc22859f68..c95a34d6b4e8d8c57c52ef652c7fad0453dfe623 100644 (file)
@@ -148,7 +148,7 @@ public class ZipFile implements ZipConstants
    * @exception IOException if a i/o error occured.
    * @exception EOFException if the file ends prematurely
    */
-  private final int readLeShort(DataInput di, byte[] b) throws IOException
+  private int readLeShort(DataInput di, byte[] b) throws IOException
   {
     di.readFully(b, 0, 2);
     return (b[0] & 0xff) | (b[1] & 0xff) << 8;
@@ -165,14 +165,13 @@ public class ZipFile implements ZipConstants
    * @exception IOException if a i/o error occured.
    * @exception EOFException if the file ends prematurely
    */
-  private final int readLeInt(DataInput di, byte[] b) throws IOException
+  private int readLeInt(DataInput di, byte[] b) throws IOException
   {
     di.readFully(b, 0, 4);
     return ((b[0] & 0xff) | (b[1] & 0xff) << 8)
            | ((b[2] & 0xff) | (b[3] & 0xff) << 8) << 16;
   }
 
-  
   /**
    * Read an unsigned short in little endian byte order from the given
    * byte buffer at the given offset.
@@ -181,7 +180,7 @@ public class ZipFile implements ZipConstants
    * @param off the offset to read from.
    * @return The value read.
    */
-  private final int readLeShort(byte[] b, int off)
+  private int readLeShort(byte[] b, int off)
   {
     return (b[off] & 0xff) | (b[off+1] & 0xff) << 8;
   }
@@ -194,7 +193,7 @@ public class ZipFile implements ZipConstants
    * @param off the offset to read from.
    * @return The value read.
    */
-  private final int readLeInt(byte[] b, int off)
+  private int readLeInt(byte[] b, int off)
   {
     return ((b[off] & 0xff) | (b[off+1] & 0xff) << 8)
            | ((b[off+2] & 0xff) | (b[off+3] & 0xff) << 8) << 16;
index 40ba8055b51e31b0959f0b3e3259f40c538f162a..3cc67516e2a91a6de72bb6bdbac40b32b9856e2c 100644 (file)
@@ -106,7 +106,7 @@ public class ZipInputStream extends InflaterInputStream implements ZipConstants
       }
   }
   
-  private final int readLeByte() throws IOException
+  private int readLeByte() throws IOException
   {
     if (avail <= 0)
       {
@@ -120,7 +120,7 @@ public class ZipInputStream extends InflaterInputStream implements ZipConstants
   /**
    * Read an unsigned short in little endian byte order.
    */
-  private final int readLeShort() throws IOException 
+  private int readLeShort() throws IOException 
   {
     return readLeByte() | (readLeByte() << 8);
   }
@@ -128,7 +128,7 @@ public class ZipInputStream extends InflaterInputStream implements ZipConstants
   /**
    * Read an int in little endian byte order.
    */
-  private final int readLeInt() throws IOException 
+  private int readLeInt() throws IOException 
   {
     return readLeShort() | (readLeShort() << 16);
   }
index 9c3a2c81908a33ee093c63b3bac9f2347279c3df..ab1d0ce56a23ca7a72a07227d859967a6099bdcf 100644 (file)
@@ -1,5 +1,5 @@
-/* java.util.zip.ZipOutputStream
-   Copyright (C) 2001 Free Software Foundation, Inc.
+/* ZipOutputStream.java --
+   Copyright (C) 2001, 2004  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -71,17 +71,18 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant
   /**
    * Our Zip version is hard coded to 1.0 resp. 2.0
    */
-  private final static int ZIP_STORED_VERSION   = 10;
-  private final static int ZIP_DEFLATED_VERSION = 20;
+  private static final int ZIP_STORED_VERSION = 10;
+  private static final int ZIP_DEFLATED_VERSION = 20;
 
   /**
    * Compression method.  This method doesn't compress at all.
    */
-  public final static int STORED      =  0;
+  public static final int STORED = 0;
+  
   /**
    * Compression method.  This method uses the Deflater.
    */
-  public final static int DEFLATED    =  8;
+  public static final int DEFLATED = 8;
 
   /**
    * Creates a new Zip output stream, writing a zip archive.
@@ -136,7 +137,7 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant
   /**
    * Write an unsigned short in little endian byte order.
    */
-  private final void writeLeShort(int value) throws IOException 
+  private void writeLeShort(int value) throws IOException 
   {
     out.write(value & 0xff);
     out.write((value >> 8) & 0xff);
@@ -145,7 +146,7 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant
   /**
    * Write an int in little endian byte order.
    */
-  private final void writeLeInt(int value) throws IOException 
+  private void writeLeInt(int value) throws IOException 
   {
     writeLeShort(value);
     writeLeShort(value >> 16);