commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r582446 - in /commons/proper/codec/trunk/src/java/org/apache/commons/codec/net: QCodec.java QuotedPrintableCodec.java
Date Sat, 06 Oct 2007 04:11:49 GMT
Author: bayard
Date: Fri Oct  5 21:11:49 2007
New Revision: 582446

URL: http://svn.apache.org/viewvc?rev=582446&view=rev
Log:
Made a bunch of constants final

Modified:
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QCodec.java
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QuotedPrintableCodec.java

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QCodec.java?rev=582446&r1=582445&r2=582446&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QCodec.java (original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QCodec.java Fri Oct 
5 21:11:49 2007
@@ -99,9 +99,9 @@
         PRINTABLE_CHARS.set('~');
     }
 
-    private static byte BLANK = 32;
+    private static final byte BLANK = 32;
 
-    private static byte UNDERSCORE = 95;
+    private static final byte UNDERSCORE = 95;
 
     private boolean encodeBlanks = false;
 
@@ -308,4 +308,4 @@
     public void setEncodeBlanks(boolean b) {
         this.encodeBlanks = b;
     }
-}
\ No newline at end of file
+}

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QuotedPrintableCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QuotedPrintableCodec.java?rev=582446&r1=582445&r2=582446&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QuotedPrintableCodec.java
(original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/QuotedPrintableCodec.java
Fri Oct  5 21:11:49 2007
@@ -69,11 +69,11 @@
      */
     private static final BitSet PRINTABLE_CHARS = new BitSet(256);
 
-    private static byte ESCAPE_CHAR = '=';
+    private static final byte ESCAPE_CHAR = '=';
 
-    private static byte TAB = 9;
+    private static final byte TAB = 9;
 
-    private static byte SPACE = 32;
+    private static final byte SPACE = 32;
     // Static initializer for printable chars collection
     static {
         // alpha characters
@@ -385,4 +385,4 @@
         }
         return new String(encode(pString.getBytes(charset)), CharacterEncodingNames.US_ASCII);
     }
-}
\ No newline at end of file
+}



Mime
View raw message