You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by dv...@apache.org on 2006/11/22 15:23:25 UTC

svn commit: r478169 [1/2] - in /xmlgraphics/batik/trunk/sources/org/apache/batik: util/ util/gui/ util/gui/resource/ util/io/ util/resources/ xml/

Author: dvholten
Date: Wed Nov 22 06:23:24 2006
New Revision: 478169

URL: http://svn.apache.org/viewvc?view=rev&rev=478169
Log:
some contribution to the general cleanup for the next version:
1.) replace some 'type var[]' with  'type[] var' - convention
2.) replace some StringBuffer.append( "x" ) with .append( 'x' )
3.) change order of (public/final/static/) modifiers to standard order
4.) replace some manual copy-loops with System.arraycopy()
5.) replace some statements of the form 'if (  func) == false )'  to 'if ( ! func() ) '
6.) add '@version $Id$' to some class-javadoc
7.) remove redundant modifiers from interfaces:everything declared in an interface is implicitly public
8.) remove some obsolete semicolons
9.) trim trailing blanks

Modified:
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64DecodeStream.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64EncoderStream.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/ClassFileUtilities.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/CleanerThread.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/EncodingUtilities.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/EventDispatcher.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/HaltingThread.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/Messages.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/MimeTypeConstants.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLData.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLProtocolHandler.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/PreferenceManager.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12CSSConstants.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12Constants.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/XMLResourceDescriptor.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/CSSMediaPanel.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/DOMViewer.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/JErrorPane.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LanguageDialog.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LocationBar.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/MemoryMonitor.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/URIChooser.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/UserStyleDialog.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ButtonFactory.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/MenuFactory.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ToolBarFactory.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/AbstractCharDecoder.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/Messages.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/NormalizingReader.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/StreamNormalizingReader.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/UTF8Decoder.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/util/resources/Messages.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/xml/XMLCharacters.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/xml/XMLScanner.java

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64DecodeStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64DecodeStream.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64DecodeStream.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64DecodeStream.java Wed Nov 22 06:23:24 2006
@@ -55,7 +55,7 @@
         this.src = src;
     }
 
-    private final static byte pem_array[] = new byte[256];
+    private static final byte pem_array[] = new byte[256];
     static {
         for (int i=0; i<pem_array.length; i++)
             pem_array[i] = -1;
@@ -67,7 +67,7 @@
         for (char c='a'; c<='z'; c++) {
             pem_array[c] = (byte)idx++;
         }
-        
+
         for (char c='0'; c<='9'; c++) {
             pem_array[c] = (byte)idx++;
         }
@@ -78,12 +78,12 @@
 
     public boolean markSupported() { return false; }
 
-    public void close() 
+    public void close()
         throws IOException {
         EOF = true;
     }
 
-    public int available() 
+    public int available()
         throws IOException {
         return 3-out_offset;
     }
@@ -105,7 +105,7 @@
         return ((int)out_buffer[out_offset++])&0xFF;
     }
 
-    public int read(byte []out, int offset, int len) 
+    public int read(byte []out, int offset, int len)
         throws IOException {
 
         int idx = 0;
@@ -136,7 +136,7 @@
 
             int in=off, out=off;
             while(in < off+count) {
-                if ((decode_buffer[in] != '\n') && 
+                if ((decode_buffer[in] != '\n') &&
                     (decode_buffer[in] != '\r') &&
                     (decode_buffer[in] != ' '))
                     decode_buffer[out++] = decode_buffer[in];
@@ -150,7 +150,7 @@
         b = pem_array[((int)decode_buffer[1])&0xFF];
         c = pem_array[((int)decode_buffer[2])&0xFF];
         d = pem_array[((int)decode_buffer[3])&0xFF];
-        
+
         out_buffer[0] = (byte)((a<<2) | (b>>>4));
         out_buffer[1] = (byte)((b<<4) | (c>>>2));
         out_buffer[2] = (byte)((c<<6) |  d     );
@@ -170,7 +170,7 @@
             out_offset = 1;
             EOF=true;
         }
-            
+
         return false;
     }
 }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64EncoderStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64EncoderStream.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64EncoderStream.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/Base64EncoderStream.java Wed Nov 22 06:23:24 2006
@@ -38,7 +38,7 @@
 public class Base64EncoderStream extends OutputStream {
 
     /** This array maps the 6 bit values to their characters */
-    private final static byte pem_array[] = {
+    private static final byte pem_array[] = {
     //   0   1   2   3   4   5   6   7
         'A','B','C','D','E','F','G','H', // 0
         'I','J','K','L','M','N','O','P', // 1
@@ -71,7 +71,7 @@
     public void close () throws IOException {
         if (out != null) {
             encodeAtom();
-            out.flush();        
+            out.flush();
             if (closeOutOnClose)
                 out.close();
             out=null;
@@ -81,7 +81,7 @@
     /**
      * This can't really flush out output since that may generate
      * '=' chars which would indicate the end of the stream.
-     * Instead we flush out.  You can only be sure all output is 
+     * Instead we flush out.  You can only be sure all output is
      * writen by closing this stream.
      */
     public void flush() throws IOException {
@@ -152,14 +152,14 @@
      * than three is encodes either one or two '=' signs to indicate
      * padding characters.
      */
-    void encodeFromArray(byte[] data, int offset, int len) 
+    void encodeFromArray(byte[] data, int offset, int len)
         throws IOException{
         byte a, b, c;
         if (len == 0)
             return;
 
-        // System.out.println("atomLen: " + atomLen + 
-        //                    " len: " + len + 
+        // System.out.println("atomLen: " + atomLen +
+        //                    " len: " + len +
         //                    " offset:  " + offset);
 
         if (atomLen != 0) {
@@ -181,7 +181,7 @@
             a = data[offset++];
             b = data[offset++];
             c = data[offset++];
-            
+
             encodeBuf[0] = pem_array[((a >>> 2) & 0x3F)];
             encodeBuf[1] = pem_array[(((a << 4) & 0x30) | ((b >>> 4) & 0x0F))];
             encodeBuf[2] = pem_array[(((b << 2) & 0x3C) | ((c >>> 6) & 0x03))];
@@ -210,6 +210,6 @@
         atomLen = len;
     }
 
-    
-    
+
+
 }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/ClassFileUtilities.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/ClassFileUtilities.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/ClassFileUtilities.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/ClassFileUtilities.java Wed Nov 22 06:23:24 2006
@@ -36,17 +36,17 @@
 public class ClassFileUtilities {
 
     // Constant pool info tags
-    public final static byte CONSTANT_UTF8_INFO                = 1;
-    public final static byte CONSTANT_INTEGER_INFO             = 3;
-    public final static byte CONSTANT_FLOAT_INFO               = 4;
-    public final static byte CONSTANT_LONG_INFO                = 5;
-    public final static byte CONSTANT_DOUBLE_INFO              = 6;
-    public final static byte CONSTANT_CLASS_INFO               = 7;
-    public final static byte CONSTANT_STRING_INFO              = 8;
-    public final static byte CONSTANT_FIELDREF_INFO            = 9;
-    public final static byte CONSTANT_METHODREF_INFO           = 10;
-    public final static byte CONSTANT_INTERFACEMETHODREF_INFO  = 11;
-    public final static byte CONSTANT_NAMEANDTYPE_INFO         = 12;
+    public static final byte CONSTANT_UTF8_INFO                = 1;
+    public static final byte CONSTANT_INTEGER_INFO             = 3;
+    public static final byte CONSTANT_FLOAT_INFO               = 4;
+    public static final byte CONSTANT_LONG_INFO                = 5;
+    public static final byte CONSTANT_DOUBLE_INFO              = 6;
+    public static final byte CONSTANT_CLASS_INFO               = 7;
+    public static final byte CONSTANT_STRING_INFO              = 8;
+    public static final byte CONSTANT_FIELDREF_INFO            = 9;
+    public static final byte CONSTANT_METHODREF_INFO           = 10;
+    public static final byte CONSTANT_INTERFACEMETHODREF_INFO  = 11;
+    public static final byte CONSTANT_NAMEANDTYPE_INFO         = 12;
 
     /**
      * This class does not need to be instantiated.
@@ -92,7 +92,7 @@
                     File f = new File(path);
                     if (f.isFile()) {
                         result.add(path);
-                        
+
                         computeClassDependencies(new FileInputStream(f),
                                                  classpath,
                                                  done,
@@ -113,9 +113,9 @@
         if (dis.readInt() != 0xcafebabe) {
             throw new IOException("Invalid classfile");
         }
-        
+
         dis.readInt();
-        
+
         int len = dis.readShort();
         String[] strs = new String[len];
         Set classes = new HashSet();
@@ -144,7 +144,7 @@
             case CONSTANT_STRING_INFO:
                 dis.readShort();
                 break;
-                
+
             case CONSTANT_NAMEANDTYPE_INFO:
                 dis.readShort();
                 desc.add(new Integer(dis.readShort() & 0xffff));
@@ -153,7 +153,7 @@
             case CONSTANT_UTF8_INFO:
                 strs[i] = dis.readUTF();
                 break;
-                
+
             default:
                 throw new RuntimeException();
             }
@@ -203,10 +203,10 @@
                     }
                     result.add(sb.toString());
                     break;
-                    
+
                 default:
                     break;
-                    
+
                 case ')':
                     break loop;
                 }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/CleanerThread.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/CleanerThread.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/CleanerThread.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/CleanerThread.java Wed Nov 22 06:23:24 2006
@@ -62,7 +62,7 @@
      * A SoftReference subclass that automatically registers with
      * the cleaner ReferenceQueue.
      */
-    public static abstract class SoftReferenceCleared extends SoftReference
+    public abstract static class SoftReferenceCleared extends SoftReference
       implements ReferenceCleared {
         public SoftReferenceCleared(Object o) {
             super (o, CleanerThread.getReferenceQueue());
@@ -73,7 +73,7 @@
      * A WeakReference subclass that automatically registers with
      * the cleaner ReferenceQueue.
      */
-    public static abstract class WeakReferenceCleared extends WeakReference
+    public abstract static class WeakReferenceCleared extends WeakReference
       implements ReferenceCleared {
         public WeakReferenceCleared(Object o) {
             super (o, CleanerThread.getReferenceQueue());
@@ -84,7 +84,7 @@
      * A PhantomReference subclass that automatically registers with
      * the cleaner ReferenceQueue.
      */
-    public static abstract class PhantomReferenceCleared
+    public abstract static class PhantomReferenceCleared
         extends PhantomReference
         implements ReferenceCleared {
         public PhantomReferenceCleared(Object o) {

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/EncodingUtilities.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/EncodingUtilities.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/EncodingUtilities.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/EncodingUtilities.java Wed Nov 22 06:23:24 2006
@@ -28,11 +28,11 @@
  * @version $Id$
  */
 public class EncodingUtilities {
-    
+
     /**
      * The standard to Java encoding table.
      */
-    protected final static Map ENCODINGS = new HashMap();
+    protected static final Map ENCODINGS = new HashMap();
     static {
         ENCODINGS.put("UTF-8",           "UTF8");
         ENCODINGS.put("UTF-16",          "Unicode");

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/EventDispatcher.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/EventDispatcher.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/EventDispatcher.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/EventDispatcher.java Wed Nov 22 06:23:24 2006
@@ -31,7 +31,7 @@
 public class EventDispatcher {
 
     public interface Dispatcher {
-        public void dispatch(Object listener,
+        void dispatch(Object listener,
                              Object event);
     }
 

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/HaltingThread.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/HaltingThread.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/HaltingThread.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/HaltingThread.java Wed Nov 22 06:23:24 2006
@@ -75,7 +75,7 @@
      * HaltingThread otherwise it does nothing.
      */
     public static void haltThread(Thread t) {
-        if (t instanceof HaltingThread) 
+        if (t instanceof HaltingThread)
             ((HaltingThread)t).halt();
     }
 
@@ -89,14 +89,14 @@
     }
 
     /**
-     * Returns the result of calling hasBeenHalted on <tt>t</tt>, 
+     * Returns the result of calling hasBeenHalted on <tt>t</tt>,
      * if it is an instance of HaltingThread otherwise it returns false.
      */
     public static boolean hasBeenHalted(Thread t) {
-        if (t instanceof HaltingThread) 
+        if (t instanceof HaltingThread)
             return ((HaltingThread)t).isHalted();
         return false;
     }
 
 
-};
+}

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/Messages.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/Messages.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/Messages.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/Messages.java Wed Nov 22 06:23:24 2006
@@ -40,7 +40,7 @@
     /**
      * The error messages bundle class name.
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.util.resources.Messages";
 
     /**
@@ -84,7 +84,7 @@
         return resourceManager.getString(key);
     }
 
-    public static int getInteger(String key) 
+    public static int getInteger(String key)
         throws MissingResourceException {
         return resourceManager.getInteger(key);
     }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/MimeTypeConstants.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/MimeTypeConstants.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/MimeTypeConstants.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/MimeTypeConstants.java Wed Nov 22 06:23:24 2006
@@ -28,7 +28,7 @@
     //
     // Mime Type Constants
     //
-    public final String [] MIME_TYPES_SVG = {
+    String [] MIME_TYPES_SVG = {
         "image/svg+xml",
         "application/xml",
         "text/xml" };

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java Wed Nov 22 06:23:24 2006
@@ -38,7 +38,7 @@
  *
  * Second it allows for extension of the protocols supported by the
  * URL parser.  Batik uses this to support the 'Data' protocol.
- * 
+ *
  * Third by default it checks the streams that it opens to see if they
  * are GZIP compressed, if so it automatically uncompresses them
  * (avoiding opening the stream twice in the processes).
@@ -51,11 +51,11 @@
  * protocol specific instances of the ParsedURLData class.
  *
  * @author <a href="mailto:deweese@apache.org">Thomas DeWeese</a>
- * @version $Id$ 
+ * @version $Id$
  */
 public class ParsedURL {
 
-    /** 
+    /**
      * The data class we defer most things to.
      */
     ParsedURLData data;
@@ -68,22 +68,22 @@
     /**
      * This maps between protocol names and ParsedURLProtocolHandler instances.
      */
-    private static Map handlersMap = null; 
+    private static Map handlersMap = null;
 
     /**
      * The default protocol handler.  This handler is used when
      * other handlers fail or no match for a protocol can be
      * found.
      */
-    private static ParsedURLProtocolHandler defaultHandler 
+    private static ParsedURLProtocolHandler defaultHandler
         = new ParsedURLDefaultProtocolHandler();
 
     private static String globalUserAgent = "Batik/"+Version.getVersion();
 
     public static String getGlobalUserAgent() { return globalUserAgent; }
 
-    public static void setGlobalUserAgent(String userAgent) { 
-        globalUserAgent = userAgent; 
+    public static void setGlobalUserAgent(String userAgent) {
+        globalUserAgent = userAgent;
     }
 
     /**
@@ -92,7 +92,7 @@
      * the first time it has been requested since the class was
      * loaded.
      */
-    private static synchronized Map getHandlersMap() { 
+    private static synchronized Map getHandlersMap() {
         if (handlersMap != null) return handlersMap;
 
         handlersMap = new HashMap();
@@ -110,13 +110,13 @@
 
 
         return handlersMap;
-        
+
     }
 
     /**
      *  Returns the handler for a particular protocol.  If protocol is
      * <tt>null</tt> or no match is found in the handlers map it
-     * returns the default protocol handler.  
+     * returns the default protocol handler.
      * @param protocol The protocol to get a handler for.
      */
     public static synchronized ParsedURLProtocolHandler getHandler
@@ -137,7 +137,7 @@
      * If the given protocol handler returns <tt>null</tt> as it's
      * supported protocol then it is registered as the default
      * protocol handler.
-     * @param handler the new Protocol Handler to register 
+     * @param handler the new Protocol Handler to register
      */
     public static synchronized void registerHandler
         (ParsedURLProtocolHandler handler) {
@@ -157,18 +157,18 @@
      * buffered version of is) untouched.
      * @param is Stream that may potentially be a GZIP stream.
      */
-    public static InputStream checkGZIP(InputStream is) 
+    public static InputStream checkGZIP(InputStream is)
         throws IOException {
         return ParsedURLData.checkGZIP(is);
     }
 
     /**
      * Construct a ParsedURL from the given url string.
-     * @param urlStr The string to try and parse as a URL 
+     * @param urlStr The string to try and parse as a URL
      */
     public ParsedURL(String urlStr) {
-        this.userAgent = getGlobalUserAgent();
-        this.data      = parseURL(urlStr);
+        userAgent = getGlobalUserAgent();
+        data      = parseURL(urlStr);
     }
 
     /**
@@ -178,11 +178,11 @@
      * quicker and less prone to reinterpretation than converting the
      * URL to a string before construction.
      *
-     * @param url The URL to "mimic".  
+     * @param url The URL to "mimic".
      */
     public ParsedURL(URL url) {
-        this.userAgent = getGlobalUserAgent();
-        this.data      = new ParsedURLData(url);
+        userAgent = getGlobalUserAgent();
+        data      = new ParsedURLData(url);
     }
 
     /**
@@ -192,11 +192,11 @@
      *               the missing pieces will be taken from the baseStr.
      */
     public ParsedURL(String baseStr, String urlStr) {
-        this.userAgent = getGlobalUserAgent();
+        userAgent = getGlobalUserAgent();
         if (baseStr != null)
-            this.data = parseURL(baseStr, urlStr);
+            data = parseURL(baseStr, urlStr);
         else
-            this.data = parseURL(urlStr);
+            data = parseURL(urlStr);
     }
 
     /**
@@ -206,12 +206,12 @@
      *               the missing pieces will be taken from the baseURL.
      */
     public ParsedURL(URL baseURL, String urlStr) {
-        this.userAgent = getGlobalUserAgent();
-        
+        userAgent = getGlobalUserAgent();
+
         if (baseURL != null)
-            this.data = parseURL(new ParsedURL(baseURL), urlStr);
+            data = parseURL(new ParsedURL(baseURL), urlStr);
         else
-            this.data = parseURL(urlStr);
+            data = parseURL(urlStr);
     }
 
     /**
@@ -221,15 +221,15 @@
      *               the missing pieces will be taken from the baseURL.
      */
     public ParsedURL(ParsedURL baseURL, String urlStr) {
-        this.userAgent = baseURL.getUserAgent();
+        userAgent = baseURL.getUserAgent();
         if (baseURL != null)
-            this.data = parseURL(baseURL, urlStr);
+            data = parseURL(baseURL, urlStr);
         else
-            this.data = parseURL(urlStr);
+            data = parseURL(urlStr);
     }
 
     /**
-     * Return a string rep of the URL (can be passed back into the 
+     * Return a string rep of the URL (can be passed back into the
      * constructor if desired).
      */
     public String toString() {
@@ -243,7 +243,7 @@
      */
     public boolean equals(Object obj) {
         if (obj == null) return false;
-        if (! (obj instanceof ParsedURL)) 
+        if (! (obj instanceof ParsedURL))
             return false;
         ParsedURL purl = (ParsedURL)obj;
         return data.equals(purl.data);
@@ -257,7 +257,7 @@
     public int hashCode() {
         return data.hashCode();
     }
-        
+
     /**
      * Returns true if the URL looks well formed and complete.
      * This does not garuntee that the stream can be opened but
@@ -286,18 +286,18 @@
      * Returns the protocol for this URL.
      * The protocol is everything upto the first ':'.
      */
-    public String getProtocol() { 
+    public String getProtocol() {
         if (data.protocol == null) return null;
-        return new String(data.protocol); 
+        return data.protocol;
     }
-    
+
     /**
      * Returns the host for this URL, if any, <tt>null</tt> if there isn't
      * one or it doesn't make sense for the protocol.
      */
-    public String getHost()     { 
+    public String getHost() {
         if (data.host == null) return null;
-        return new String(data.host); 
+        return data.host;
     }
 
     /**
@@ -312,19 +312,19 @@
      * Note that getPath appears in JDK 1.3 as a synonym for getFile
      * from JDK 1.2.
      */
-    public String getPath()     { 
+    public String getPath() {
         if (data.path == null) return null;
-        return new String(data.path); 
+        return data.path;
     }
 
     /**
      * Returns the 'fragment' reference in the URL.
      */
-    public String getRef()      { 
+    public String getRef() {
         if (data.ref == null) return null;
-        return new String(data.ref); 
+        return data.ref;
     }
-    
+
 
     /**
      * Returns the URL up to and include the port number on
@@ -352,7 +352,7 @@
 
     /**
      * Attempt to open the stream checking for common compression
-     * types, and automatically decompressing them if found.  
+     * types, and automatically decompressing them if found.
      */
     public InputStream openStream() throws IOException {
         return data.openStream(userAgent, null);
@@ -360,8 +360,8 @@
 
     /**
      * Attempt to open the stream checking for common compression
-     * types, and automatically decompressing them if found.  
-     * @param mimeType The expected mime type of the content 
+     * types, and automatically decompressing them if found.
+     * @param mimeType The expected mime type of the content
      *        in the returned InputStream (mapped to Http accept
      *        header among other possabilities).
      */
@@ -374,7 +374,7 @@
     /**
      * Attempt to open the stream checking for common compression
      * types, and automatically decompressing them if found.
-     * @param mimeTypes The expected mime types of the content 
+     * @param mimeTypes The expected mime types of the content
      *        in the returned InputStream (mapped to Http accept
      *        header among other possabilities).
      */
@@ -388,7 +388,7 @@
     /**
      * Attempt to open the stream checking for common compression
      * types, and automatically decompressing them if found.
-     * @param mimeTypes The expected mime types of the content 
+     * @param mimeTypes The expected mime types of the content
      *        in the returned InputStream (mapped to Http accept
      *        header among other possabilities).  The elements of
      *        the iterator must be strings.
@@ -408,7 +408,7 @@
     /**
      * Attempt to open the stream, does no checking for compression
      * types.
-     * @param mimeType The expected mime type of the content 
+     * @param mimeType The expected mime type of the content
      *        in the returned InputStream (mapped to Http accept
      *        header among other possabilities).
      */
@@ -421,7 +421,7 @@
     /**
      * Attempt to open the stream, does no checking for comression
      * types.
-     * @param mimeTypes The expected mime types of the content 
+     * @param mimeTypes The expected mime types of the content
      *        in the returned InputStream (mapped to Http accept
      *        header among other possabilities).
      */
@@ -435,7 +435,7 @@
     /**
      * Attempt to open the stream, does no checking for comression
      * types.
-     * @param mimeTypes The expected mime types of the content 
+     * @param mimeTypes The expected mime types of the content
      *        in the returned InputStream (mapped to Http accept
      *        header among other possabilities).  The elements of
      *        the iterator must be strings.
@@ -465,9 +465,9 @@
         // are done (if it is a ':' then we have protocol otherwise
         // we don't.
         char ch = urlStr.charAt(idx);
-        while ((ch == '-') ||
-               (ch == '+') ||
-               (ch == '.') ||
+        while ((ch == '-') ||                      // todo this might be more efficient with a long mask
+               (ch == '+') ||                      // which has a bit set for each valid char.
+               (ch == '.') ||                      // check feasability
                ((ch >= 'a') && (ch <= 'z')) ||
                ((ch >= 'A') && (ch <= 'Z'))) {
             idx++;
@@ -483,14 +483,14 @@
         }
         return null;
     }
-    
+
     /**
      * Factory method to construct an appropriate subclass of  ParsedURLData
      * @param urlStr the string to parse.
      */
     public static ParsedURLData parseURL(String urlStr) {
         ParsedURLProtocolHandler handler = getHandler(getProtocol(urlStr));
-        return handler.parseURL(urlStr);        
+        return handler.parseURL(urlStr);
     }
 
     /**

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLData.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLData.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLData.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLData.java Wed Nov 22 06:23:24 2006
@@ -36,15 +36,15 @@
  * Holds the data for more URLs.
  *
  * @author <a href="mailto:deweese@apache.org">Thomas DeWeese</a>
- * @version $Id$ 
+ * @version $Id$
  */
 public class ParsedURLData {
-    
-    protected final static String HTTP_USER_AGENT_HEADER      = "User-Agent";
 
-    protected final static String HTTP_ACCEPT_HEADER          = "Accept";
-    protected final static String HTTP_ACCEPT_LANGUAGE_HEADER = "Accept-Language";
-    protected final static String HTTP_ACCEPT_ENCODING_HEADER = "Accept-Encoding";
+    protected static final String HTTP_USER_AGENT_HEADER      = "User-Agent";
+
+    protected static final String HTTP_ACCEPT_HEADER          = "Accept";
+    protected static final String HTTP_ACCEPT_LANGUAGE_HEADER = "Accept-Language";
+    protected static final String HTTP_ACCEPT_ENCODING_HEADER = "Accept-Encoding";
 
     protected static List acceptedEncodings = new LinkedList();
     static {
@@ -55,7 +55,7 @@
      * GZIP header magic number bytes, like found in a gzipped
      * files, which are encoded in Intel format (i&#x2e;e&#x2e; little indian).
      */
-    public final static byte GZIP_MAGIC[] = {(byte)0x1f, (byte)0x8b};
+    public static final byte GZIP_MAGIC[] = {(byte)0x1f, (byte)0x8b};
 
     /**
      * This is a utility function others can call that checks if
@@ -64,7 +64,7 @@
      * buffered version of is) untouched.
      * @param is Stream that may potentially be a GZIP stream.
      */
-    public static InputStream checkGZIP(InputStream is) 
+    public static InputStream checkGZIP(InputStream is)
         throws IOException {
 
             if (!is.markSupported())
@@ -84,7 +84,7 @@
 
         if (((data[0]&0x0F)  == 8) &&
             ((data[0]>>>4)   <= 7)) {
-            // Check for a zlib (deflate) stream 
+            // Check for a zlib (deflate) stream
             int chk = ((((int)data[0])&0xFF)*256+
                        (((int)data[1])&0xFF));
             if ((chk %31)  == 0) {
@@ -107,7 +107,7 @@
                 }
             }
         }
-        
+
         return is;
     }
 
@@ -139,21 +139,21 @@
      */
     public ParsedURLData(URL url) {
         protocol = url.getProtocol();
-        if ((protocol != null) && (protocol.length() == 0)) 
+        if ((protocol != null) && (protocol.length() == 0))
             protocol = null;
 
         host = url.getHost();
-        if ((host != null) && (host.length() == 0)) 
+        if ((host != null) && (host.length() == 0))
             host = null;
 
         port     = url.getPort();
 
         path     = url.getFile();
-        if ((path != null) && (path.length() == 0)) 
+        if ((path != null) && (path.length() == 0))
             path = null;
 
         ref      = url.getRef();
-        if ((ref != null) && (ref.length() == 0))  
+        if ((ref != null) && (ref.length() == 0))
             ref = null;
     }
 
@@ -166,12 +166,12 @@
         // System.out.println("File: " + file);
         // if (ref != null)
         //     file += "#" + ref;
-        // System.err.println("Building: " + protocol + " - " + 
+        // System.err.println("Building: " + protocol + " - " +
         //                     host + " - " + path);
 
         if ((protocol != null) && (host != null)) {
             String file = "";
-            if (path != null) 
+            if (path != null)
                 file = path;
             if (port == -1)
                 return new URL(protocol, host, file);
@@ -187,7 +187,7 @@
      */
     public int hashCode() {
         int hc = port;
-        if (protocol != null) 
+        if (protocol != null)
             hc ^= protocol.hashCode();
         if (host != null)
             hc ^= host.hashCode();
@@ -218,13 +218,13 @@
      */
     public boolean equals(Object obj) {
         if (obj == null) return false;
-        if (! (obj instanceof ParsedURLData)) 
+        if (! (obj instanceof ParsedURLData))
             return false;
 
         ParsedURLData ud = (ParsedURLData)obj;
         if (ud.port != port)
             return false;
-            
+
         if (ud.protocol==null) {
             if (protocol != null)
                 return false;
@@ -313,19 +313,19 @@
      * the stream is found to be compressed with a standard
      * compression type it is automatically decompressed.
      * @param userAgent The user agent opening the stream (may be null).
-     * @param mimeTypes The expected mime types of the content 
+     * @param mimeTypes The expected mime types of the content
      *        in the returned InputStream (mapped to Http accept
      *        header among other possability).  The elements of
      *        the iterator must be strings (may be null)
      */
-    public InputStream openStream(String userAgent, Iterator mimeTypes) 
+    public InputStream openStream(String userAgent, Iterator mimeTypes)
         throws IOException {
-        InputStream raw = openStreamInternal(userAgent, mimeTypes, 
+        InputStream raw = openStreamInternal(userAgent, mimeTypes,
                                              acceptedEncodings.iterator());
         if (raw == null)
             return null;
         stream = null;
-                
+
         return checkGZIP(raw);
     }
 
@@ -333,14 +333,14 @@
      * Open the stream and returns it.  No checks are made to see
      * if the stream is compressed or encoded in any way.
      * @param userAgent The user agent opening the stream (may be null).
-     * @param mimeTypes The expected mime types of the content 
+     * @param mimeTypes The expected mime types of the content
      *        in the returned InputStream (mapped to Http accept
      *        header among other possability).  The elements of
      *        the iterator must be strings (may be null)
      */
-    public InputStream openStreamRaw(String userAgent, Iterator mimeTypes) 
+    public InputStream openStreamRaw(String userAgent, Iterator mimeTypes)
         throws IOException {
-        
+
         InputStream ret = openStreamInternal(userAgent, mimeTypes, null);
         stream = null;
         return ret;
@@ -348,11 +348,11 @@
 
     protected InputStream openStreamInternal(String userAgent,
                                              Iterator mimeTypes,
-                                             Iterator encodingTypes) 
+                                             Iterator encodingTypes)
         throws IOException {
         if (stream != null)
             return stream;
-        
+
         hasBeenOpened = true;
 
         URL url = null;
@@ -388,7 +388,7 @@
                     if (encodingTypes.hasNext())
                         encodingHeader += ",";
                 }
-                urlC.setRequestProperty(HTTP_ACCEPT_ENCODING_HEADER, 
+                urlC.setRequestProperty(HTTP_ACCEPT_ENCODING_HEADER,
                                         encodingHeader);
             }
 
@@ -423,11 +423,11 @@
         // Check if the rest of the two PURLs matche other than
         // the 'ref'
         if ((port      == other.port) &&
-            ((path     == other.path) 
+            ((path     == other.path)
              || ((path!=null) && path.equals(other.path))) &&
-            ((host     == other.host) 
+            ((host     == other.host)
              || ((host!=null) && host.equals(other.host))) &&
-            ((protocol == other.protocol) 
+            ((protocol == other.protocol)
              || ((protocol!=null) && protocol.equals(other.protocol))))
             return true;
 
@@ -443,7 +443,7 @@
         if (path != null)
             ret += path;
 
-        if (ref != null) 
+        if (ref != null)
             ret += "#" + ref;
 
         return ret;

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLProtocolHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLProtocolHandler.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLProtocolHandler.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURLProtocolHandler.java Wed Nov 22 06:23:24 2006
@@ -30,14 +30,14 @@
      * The protocol must _always_ be the part of the URL before the
      * first ':'.
      */
-    public String getProtocolHandled();
+    String getProtocolHandled();
     /**
      * Parse an absolute url string.
      */
-    public ParsedURLData parseURL(String urlStr);
+    ParsedURLData parseURL(String urlStr);
     /**
      * Parse a relative url string of this protocol.
      */
-    public ParsedURLData parseURL(ParsedURL basepurl, String urlStr);
+    ParsedURLData parseURL(ParsedURL basepurl, String urlStr);
 }
 

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/PreferenceManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/PreferenceManager.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/PreferenceManager.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/PreferenceManager.java Wed Nov 22 06:23:24 2006
@@ -78,14 +78,14 @@
     protected String prefFileName = null;
     protected String fullName = null;
 
-    protected final static String USER_HOME = getSystemProperty("user.home");
-    protected final static String USER_DIR  = getSystemProperty("user.dir");
-    protected final static String FILE_SEP  = getSystemProperty("file.separator");
+    protected static final String USER_HOME = getSystemProperty("user.home");
+    protected static final String USER_DIR  = getSystemProperty("user.dir");
+    protected static final String FILE_SEP  = getSystemProperty("file.separator");
 
     private static String PREF_DIR = null;
 
     /**
-     * Gets a System property if accessible. Returns an empty string 
+     * Gets a System property if accessible. Returns an empty string
      * otherwise
      */
     protected static String getSystemProperty(String prop){
@@ -634,8 +634,7 @@
     public boolean getBoolean(String key)
     {
         if (internal.getProperty(key) != null)
-            return (internal.getProperty(key).equals("true"))?
-                true:false;
+            return internal.getProperty(key).equals("true");
         else
             if (getDefault(key) != null)
                 return ((Boolean)getDefault(key)).booleanValue();
@@ -650,7 +649,7 @@
     {
         if (value != null && !value.equals(getDefault(key)))
             internal.setProperty(key, value.x+" "+value.y+" "+
-                                 value.width+" "+value.height);
+                                 value.width+ ' ' +value.height);
         else
             internal.remove(key);
     }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12CSSConstants.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12CSSConstants.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12CSSConstants.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12CSSConstants.java Wed Nov 22 06:23:24 2006
@@ -29,35 +29,34 @@
 public interface SVG12CSSConstants extends CSSConstants {
 
     /** Property name for margin shorthand */
-    public static final String CSS_MARGIN_PROPERTY        = "margin";
+    String CSS_MARGIN_PROPERTY        = "margin";
     /** Property name for top-margin */
-    public static final String CSS_MARGIN_TOP_PROPERTY    = "margin-top";
+    String CSS_MARGIN_TOP_PROPERTY    = "margin-top";
     /** Property name for right-margin */
-    public static final String CSS_MARGIN_RIGHT_PROPERTY  = "margin-right";
+    String CSS_MARGIN_RIGHT_PROPERTY  = "margin-right";
     /** Property name for bottom-margin */
-    public static final String CSS_MARGIN_BOTTOM_PROPERTY = "margin-bottom";
+    String CSS_MARGIN_BOTTOM_PROPERTY = "margin-bottom";
     /** Property name for left-margin */
-    public static final String CSS_MARGIN_LEFT_PROPERTY   = "margin-left";
+    String CSS_MARGIN_LEFT_PROPERTY   = "margin-left";
     /** property name for indent */
-    public static final String CSS_INDENT_PROPERTY        = "indent";
+    String CSS_INDENT_PROPERTY        = "indent";
     /** propery name for text-align */
-    public static final String CSS_TEXT_ALIGN_PROPERTY    = "text-align";
+    String CSS_TEXT_ALIGN_PROPERTY    = "text-align";
     /** property name for color attribute */
-    public static final String CSS_SOLID_COLOR_PROPERTY  ="solid-color";
+    String CSS_SOLID_COLOR_PROPERTY  ="solid-color";
     /** property name for opacity attribute */
-    public static final String CSS_SOLID_OPACITY_PROPERTY="solid-opacity";
+    String CSS_SOLID_OPACITY_PROPERTY="solid-opacity";
 
 
     /** Value for text-align to start of text on line */
-    public static final String CSS_START_VALUE  = "start";
+    String CSS_START_VALUE  = "start";
     /** Value for text-align to middle of text on line */
-    public static final String CSS_MIDDLE_VALUE = "middle";
+    String CSS_MIDDLE_VALUE = "middle";
     /** Value for text-align to end of region */
-    public static final String CSS_END_VALUE    = "end";
+    String CSS_END_VALUE    = "end";
     /** Value for text-align to both edges of region */
-    public static final String CSS_FULL_VALUE = "full";
+    String CSS_FULL_VALUE = "full";
     /** Value for line-height for 'normal' line height */
-    public static final String CSS_NORMAL_VALUE = "normal";
-
-};
+    String CSS_NORMAL_VALUE = "normal";
 
+}

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12Constants.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12Constants.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12Constants.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/SVG12Constants.java Wed Nov 22 06:23:24 2006
@@ -31,103 +31,103 @@
     // SVG 1.2 element tag names ////////////////////////////////////////////
 
     /** Tag name for Batik's flowRoot extension (SVG 1.2). */
-    public static final String SVG_FLOW_ROOT_TAG = 
+    String SVG_FLOW_ROOT_TAG =
         "flowRoot";
 
     /** Tag name for Batik's flowRoot extension Region element (SVG 1.2). */
-    public static final String SVG_FLOW_REGION_TAG = 
+    String SVG_FLOW_REGION_TAG =
         "flowRegion";
 
     /** Tag name for Batik's flowRoot extension Region element (SVG 1.2). */
-    public static final String SVG_FLOW_REGION_EXCLUDE_TAG = 
+    String SVG_FLOW_REGION_EXCLUDE_TAG =
         "flowRegionExclude";
 
     /** Tag name for Batik's flowRoot extension div element SVG 1.2). */
-    public static final String SVG_FLOW_DIV_TAG = 
+    String SVG_FLOW_DIV_TAG =
         "flowDiv";
 
     /** Tag name for Batik's flowRoot extension p element SVG 1.2). */
-    public static final String SVG_FLOW_PARA_TAG = 
+    String SVG_FLOW_PARA_TAG =
         "flowPara";
 
-    /** Tag name for Batik's flowRoot extension flow Region break 
+    /** Tag name for Batik's flowRoot extension flow Region break
      *  element SVG 1.2). */
-    public static final String SVG_FLOW_REGION_BREAK_TAG = 
+    String SVG_FLOW_REGION_BREAK_TAG =
         "flowRegionBreak";
 
     /** Tag name for Batik's flowRoot extension line element SVG 1.2). */
-    public static final String SVG_FLOW_LINE_TAG = 
+    String SVG_FLOW_LINE_TAG =
         "flowLine";
 
     /** Tag name for Batik's flowRoot extension span element SVG 1.2). */
-    public static final String SVG_FLOW_SPAN_TAG = 
+    String SVG_FLOW_SPAN_TAG =
         "flowSpan";
 
     /** SVG 1.2 'handler' element tag name. */
-    public static final String SVG_HANDLER_TAG =
+    String SVG_HANDLER_TAG =
         "handler";
 
     /** Tag name for Batik's multiImage extension. */
-    public static final String SVG_MULTI_IMAGE_TAG =
+    String SVG_MULTI_IMAGE_TAG =
         "multiImage";
 
     /** Tag name for Batik's solid color extension (SVG 1.2). */
-    public static final String SVG_SOLID_COLOR_TAG = 
+    String SVG_SOLID_COLOR_TAG =
         "solidColor";
 
     /** Tag name for Batik's subImage multiImage extension. */
-    public static final String SVG_SUB_IMAGE_TAG =
+    String SVG_SUB_IMAGE_TAG =
         "subImage";
 
     /** Tag name for Batik's subImageRef multiImage extension. */
-    public static final String SVG_SUB_IMAGE_REF_TAG =
+    String SVG_SUB_IMAGE_REF_TAG =
         "subImageRef";
 
     // SVG 1.2 attribute names ///////////////////////////////////////////////
 
     /** Attribute name for filterPrimitiveMarginsUnits */
-    public static final String SVG_FILTER_PRIMITIVE_MARGINS_UNITS_ATTRIBUTE =
+    String SVG_FILTER_PRIMITIVE_MARGINS_UNITS_ATTRIBUTE =
         "filterPrimitiveMarginsUnits";
 
     /** Attribute name for filterMarginsUnits */
-    public static final String SVG_FILTER_MARGINS_UNITS_ATTRIBUTE =
+    String SVG_FILTER_MARGINS_UNITS_ATTRIBUTE =
         "filterMarginsUnits";
 
     /** Attribute name for pixel-height attribute */
-    public static final String SVG_MAX_PIXEL_SIZE_ATTRIBUTE = 
+    String SVG_MAX_PIXEL_SIZE_ATTRIBUTE =
         "max-pixel-size";
 
     /** Attribute name for pixel-width attribute */
-    public static final String SVG_MIN_PIXEL_SIZE_ATTRIBUTE = 
+    String SVG_MIN_PIXEL_SIZE_ATTRIBUTE =
         "min-pixel-size";
 
     /** Attribute name for filter mx attribute */
-    public static final String SVG_MX_ATRIBUTE =
+    String SVG_MX_ATRIBUTE =
         "mx";
-    
+
     /** Attribute name for filter my attribute */
-    public static final String SVG_MY_ATRIBUTE =
+    String SVG_MY_ATRIBUTE =
         "my";
-    
+
     /** Attribute name for filter mw attribute */
-    public static final String SVG_MW_ATRIBUTE =
+    String SVG_MW_ATRIBUTE =
         "mw";
-    
+
     /** Attribute name for filter mh attribute */
-    public static final String SVG_MH_ATRIBUTE =
+    String SVG_MH_ATRIBUTE =
         "mh";
 
     // SVG 1.2 attribute default values //////////////////////////////////////
 
     /** Default value for filter mx */
-    public static final String SVG_FILTER_MX_DEFAULT_VALUE = "0";
+    String SVG_FILTER_MX_DEFAULT_VALUE = "0";
 
     /** Default value for filter my */
-    public static final String SVG_FILTER_MY_DEFAULT_VALUE = "0";
+    String SVG_FILTER_MY_DEFAULT_VALUE = "0";
 
     /** Default value for filter mw */
-    public static final String SVG_FILTER_MW_DEFAULT_VALUE = "0";
+    String SVG_FILTER_MW_DEFAULT_VALUE = "0";
 
     /** Default value for filter mh */
-    public static final String SVG_FILTER_MH_DEFAULT_VALUE = "0";
+    String SVG_FILTER_MH_DEFAULT_VALUE = "0";
 }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/XMLResourceDescriptor.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/XMLResourceDescriptor.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/XMLResourceDescriptor.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/XMLResourceDescriptor.java Wed Nov 22 06:23:24 2006
@@ -36,25 +36,25 @@
     /**
      * The XML parser class name key.
      */
-    public final static String XML_PARSER_CLASS_NAME_KEY =
+    public static final String XML_PARSER_CLASS_NAME_KEY =
         "org.xml.sax.driver";
 
     /**
      * The CSS parser class name key.
      */
-    public final static String CSS_PARSER_CLASS_NAME_KEY =
+    public static final String CSS_PARSER_CLASS_NAME_KEY =
         "org.w3c.css.sac.driver";
 
     /**
      * The resources file name
      */
-    public final static String RESOURCES =
+    public static final String RESOURCES =
         "resources/XMLResourceDescriptor.properties";
 
     /**
      * The resource bundle
      */
-    protected static Properties parserProps = null;;
+    protected static Properties parserProps = null;
 
     /**
      * The class name of the XML parser to use.
@@ -70,13 +70,13 @@
         if (parserProps != null) return parserProps;
 
         parserProps = new Properties();
-        try { 
+        try {
             Class cls = XMLResourceDescriptor.class;
             InputStream is = cls.getResourceAsStream(RESOURCES);
             parserProps.load(is);
-        } catch (IOException ioe) { 
+        } catch (IOException ioe) {
             throw new MissingResourceException(ioe.getMessage(),
-                                               RESOURCES, null); 
+                                               RESOURCES, null);
         }
         return parserProps;
     }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/CSSMediaPanel.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/CSSMediaPanel.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/CSSMediaPanel.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/CSSMediaPanel.java Wed Nov 22 06:23:24 2006
@@ -69,7 +69,7 @@
     /**
      * The resource file name
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.util.gui.resources.CSSMediaPanel";
 
     /**
@@ -125,7 +125,7 @@
         setBorder(BorderFactory.createTitledBorder
                   (BorderFactory.createEtchedBorder(),
                    resources.getString("Panel.title")));
-            
+
         ExtendedGridBagConstraints constraints =
             new ExtendedGridBagConstraints();
 
@@ -192,7 +192,7 @@
      * Sets the list of media to edit to the specified media list (separated by
      * space).
      *
-     * @param media the media separated by space 
+     * @param media the media separated by space
      */
     public void setMedia(String media) {
         listModel.removeAllElements();
@@ -201,7 +201,7 @@
             listModel.addElement(tokens.nextToken());
         }
     }
-    
+
     /**
      * Returns the list of media.
      */
@@ -244,8 +244,8 @@
      * @param title the title of this dialog
      * @param mediaList the list of media
      */
-    public static int showDialog(Component parent, 
-                                 String title, 
+    public static int showDialog(Component parent,
+                                 String title,
                                  List mediaList) {
         Dialog dialog = new Dialog(parent, title, mediaList);
         dialog.setModal(true);
@@ -261,8 +261,8 @@
      * @param title the title of this dialog
      * @param media the list of media
      */
-    public static int showDialog(Component parent, 
-                                 String title, 
+    public static int showDialog(Component parent,
+                                 String title,
                                  String media) {
         Dialog dialog = new Dialog(parent, title, media);
         dialog.setModal(true);
@@ -275,12 +275,12 @@
      * The map that contains the listeners
      */
     protected Map listeners = new HashMap();
-    
+
     /**
      * Returns the action associated with the given string or null on error
      *
      * @param key the key mapped with the action to get
-     * @throws MissingListenerException if the action is not found 
+     * @throws MissingListenerException if the action is not found
      */
     public Action getAction(String key) throws MissingListenerException {
         return (Action)listeners.get(key);
@@ -326,7 +326,7 @@
      */
     protected class RemoveButtonAction extends AbstractAction {
         public void actionPerformed(ActionEvent e) {
-            int index = mediaList.getSelectedIndex(); 
+            int index = mediaList.getSelectedIndex();
             mediaList.clearSelection();
             if (index >= 0) {
                 listModel.removeElementAt(index);
@@ -347,7 +347,7 @@
     /**
      * To manage selection modifications
      */
-    protected class MediaListSelectionListener 
+    protected class MediaListSelectionListener
         implements ListSelectionListener {
 
         public void valueChanged(ListSelectionEvent e) {
@@ -359,15 +359,15 @@
      * To manage data modifications in the media list.
      */
     protected class MediaListDataListener implements ListDataListener {
-        
+
         public void contentsChanged(ListDataEvent e) {
             updateButtons();
         }
-        
+
         public void intervalAdded(ListDataEvent e) {
             updateButtons();
         }
-        
+
         public void intervalRemoved(ListDataEvent e) {
             updateButtons();
         }
@@ -383,18 +383,18 @@
         /**
          * The return value if 'OK' is chosen.
          */
-        public final static int OK_OPTION = 0;
-        
+        public static final int OK_OPTION = 0;
+
         /**
          * The return value if 'Cancel' is chosen.
          */
-        public final static int CANCEL_OPTION = 1;
+        public static final int CANCEL_OPTION = 1;
 
         /**
          * The new medium.
          */
         protected JComboBox medium;
-        
+
         /**
          * The return code.
          */
@@ -467,12 +467,12 @@
          * The map that contains the listeners
          */
         protected Map listeners = new HashMap();
-        
+
         /**
          * Returns the action associated with the given string or null on error
          *
          * @param key the key mapped with the action to get
-         * @throws MissingListenerException if the action is not found 
+         * @throws MissingListenerException if the action is not found
          */
         public Action getAction(String key) throws MissingListenerException {
             return (Action)listeners.get(key);
@@ -487,7 +487,7 @@
                 dispose();
             }
         }
-        
+
         /**
          * The action associated with the 'Cancel' button
          */
@@ -505,17 +505,17 @@
      * A dialog to edit/add/remove CSS media.
      */
     public static class Dialog extends JDialog implements ActionMap {
-        
+
         /**
          * The return value if 'OK' is chosen.
          */
-        public final static int OK_OPTION = 0;
-        
+        public static final int OK_OPTION = 0;
+
         /**
          * The return value if 'Cancel' is chosen.
          */
-        public final static int CANCEL_OPTION = 1;
-        
+        public static final int CANCEL_OPTION = 1;
+
         /**
          * The return code.
          */
@@ -565,7 +565,7 @@
             getContentPane().add(panel, BorderLayout.CENTER);
             getContentPane().add(createButtonsPanel(), BorderLayout.SOUTH);
         }
-        
+
         /**
          * Returns the code that describes how the dialog has been closed (OK or
          * CANCEL).
@@ -573,7 +573,7 @@
         public int getReturnCode() {
             return returnCode;
         }
-        
+
         /**
          * Creates the OK/Cancel buttons panel
          */
@@ -589,12 +589,12 @@
          * The map that contains the listeners
          */
         protected Map listeners = new HashMap();
-        
+
         /**
          * Returns the action associated with the given string or null on error
          *
          * @param key the key mapped with the action to get
-         * @throws MissingListenerException if the action is not found 
+         * @throws MissingListenerException if the action is not found
          */
         public Action getAction(String key) throws MissingListenerException {
             return (Action)listeners.get(key);
@@ -609,7 +609,7 @@
                 dispose();
             }
         }
-        
+
         /**
          * The action associated with the 'Cancel' button
          */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/DOMViewer.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/DOMViewer.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/DOMViewer.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/DOMViewer.java Wed Nov 22 06:23:24 2006
@@ -81,7 +81,7 @@
     /**
      * The resource file name
      */
-    protected final static String RESOURCE =
+    protected static final String RESOURCE =
         "org.apache.batik.util.gui.resources.DOMViewerMessages";
 
     /**
@@ -123,11 +123,11 @@
                 resources.getInteger("Frame.height"));
 
         listeners.put("CloseButtonAction", new CloseButtonAction());
-        
+
         getContentPane().add(panel);
 
         JPanel p = new JPanel(new BorderLayout());
-        
+
         JCheckBox cb = new JCheckBox("Show Whitespace Text Nodes");
         cb.setSelected(showWhitespace);
         cb.addItemListener(new ItemListener() {
@@ -138,7 +138,7 @@
             });
 
         p.add(cb, BorderLayout.WEST);
-        
+
 
         ButtonFactory bf = new ButtonFactory(bundle, this);
         p.add(bf.createJButton("CloseButton"), BorderLayout.EAST);
@@ -241,7 +241,7 @@
                               resources.getString("AttributesPanel.title")),
                              BorderFactory.createLoweredBevelBorder())));
             pane.getViewport().add(attributesTable);
-                        
+
             JScrollPane pane2 = new JScrollPane();
             pane2.setBorder(BorderFactory.createCompoundBorder
                             (BorderFactory.createEmptyBorder(2, 0, 2, 2),
@@ -251,7 +251,7 @@
                                resources.getString("CSSValuesPanel.title")),
                               BorderFactory.createLoweredBevelBorder())));
             pane2.getViewport().add(propertiesTable);
-                        
+
             elementPanel.add(pane);
             elementPanel.add(pane2);
         }
@@ -336,7 +336,7 @@
             int loc = resources.getInteger("SplitPane.dividerLocation");
             splitPane.setDividerLocation(loc);
             add(splitPane);
-            
+
             tree.addTreeSelectionListener(new DOMTreeSelectionListener());
         }
 
@@ -365,7 +365,7 @@
         /**
          * Creates a swing tree from a DOM document.
          */
-        protected MutableTreeNode createTree(Node node, 
+        protected MutableTreeNode createTree(Node node,
                                              boolean showWhitespace) {
             DefaultMutableTreeNode result;
             result = new DefaultMutableTreeNode(new NodeInfo(node));
@@ -567,7 +567,7 @@
              * The node.
              */
             protected Node node;
-            
+
             /**
              * Creates a new NodeAttributesModel object.
              */
@@ -620,7 +620,7 @@
                 }
             }
         }
-    
+
         /**
          * To display the CSS properties of a DOM node in a table.
          */
@@ -634,7 +634,7 @@
              * The computed style.
              */
             protected CSSStyleDeclaration style;
-            
+
             /**
              * The property names.
              */
@@ -704,7 +704,7 @@
                 }
             }
         }
-    
+
     } // class Panel
 
     /**

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/JErrorPane.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/JErrorPane.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/JErrorPane.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/JErrorPane.java Wed Nov 22 06:23:24 2006
@@ -61,7 +61,7 @@
     /**
      * The resource file name
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.util.gui.resources.JErrorPane";
 
     /**

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LanguageDialog.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LanguageDialog.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LanguageDialog.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LanguageDialog.java Wed Nov 22 06:23:24 2006
@@ -68,17 +68,17 @@
     /**
      * The return value if 'OK' is chosen.
      */
-    public final static int OK_OPTION = 0;
+    public static final int OK_OPTION = 0;
 
     /**
      * The return value if 'Cancel' is chosen.
      */
-    public final static int CANCEL_OPTION = 1;
+    public static final int CANCEL_OPTION = 1;
 
     /**
      * The resource file name
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.util.gui.resources.LanguageDialogMessages";
 
     /**
@@ -353,7 +353,7 @@
          * event thread as it doesn't manipulate Swing <code>JComponent</code>
          * instances.
          */
-        public synchronized static void initCountryIcons()
+        public static synchronized void initCountryIcons()
         {
             // don't need to init several times...
             if (iconMap == null) {

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LocationBar.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LocationBar.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LocationBar.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/LocationBar.java Wed Nov 22 06:23:24 2006
@@ -43,7 +43,7 @@
     /**
      * The gui resources file name
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.util.gui.resources.LocationBar";
 
     /**
@@ -59,7 +59,7 @@
         bundle = ResourceBundle.getBundle(RESOURCES, Locale.getDefault());
         rManager = new ResourceManager(bundle);
     }
-    
+
     /**
      * The combo box
      */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/MemoryMonitor.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/MemoryMonitor.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/MemoryMonitor.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/MemoryMonitor.java Wed Nov 22 06:23:24 2006
@@ -71,7 +71,7 @@
     /**
      * The resource file name
      */
-    protected final static String RESOURCE =
+    protected static final String RESOURCE =
         "org.apache.batik.util.gui.resources.MemoryMonitorMessages";
 
     /**
@@ -115,7 +115,7 @@
         super(resources.getString("Frame.title"));
         listeners.put("CollectButtonAction", new CollectButtonAction());
         listeners.put("CloseButtonAction", new CloseButtonAction());
-        
+
         panel = new Panel(time);
 
         getContentPane().add(panel);
@@ -128,7 +128,7 @@
         p.add(bf.createJButton("CollectButton"));
         p.add(bf.createJButton("CloseButton"));
         getContentPane().add("South", p);
-                
+
         pack();
 
         addWindowListener(new WindowAdapter() {
@@ -213,7 +213,7 @@
             ExtendedGridBagConstraints constraints
                 = new ExtendedGridBagConstraints();
             constraints.insets = new Insets(5, 5, 5, 5);
-        
+
             List l = new ArrayList();
             JPanel p = new JPanel(new BorderLayout());
             p.setBorder(BorderFactory.createLoweredBevelBorder());
@@ -225,7 +225,7 @@
             constraints.setGridBounds(0, 0, 1, 1);
             add(p, constraints);
             l.add(c);
-            
+
             p = new JPanel(new BorderLayout());
             p.setBorder(BorderFactory.createLoweredBevelBorder());
             c = new MemoryMonitor.History();
@@ -253,68 +253,68 @@
         /**
          * The preferred width.
          */
-        public final static int PREFERRED_WIDTH = 90;
+        public static final int PREFERRED_WIDTH = 90;
 
         /**
          * The preferred height.
          */
-        public final static int PREFERRED_HEIGHT = 100;
+        public static final int PREFERRED_HEIGHT = 100;
 
         /**
          * The units string.
          */
-        protected final static String UNITS
+        protected static final String UNITS
             = resources.getString("Usage.units");
 
         /**
          * The total string.
          */
-        protected final static String TOTAL
+        protected static final String TOTAL
             = resources.getString("Usage.total");
 
         /**
          * The used string.
          */
-        protected final static String USED
+        protected static final String USED
             = resources.getString("Usage.used");
 
         /**
          * The text position.
          */
-        protected final static boolean POSTFIX
+        protected static final boolean POSTFIX
             = resources.getBoolean("Usage.postfix");
 
         /**
          * The font size.
          */
-        protected final static int FONT_SIZE = 9;
+        protected static final int FONT_SIZE = 9;
 
         /**
          * The blocks margin.
          */
-        protected final static int BLOCK_MARGIN = 10;
+        protected static final int BLOCK_MARGIN = 10;
 
         /**
          * The number of blocks.
          */
-        protected final static int BLOCKS = 15;
+        protected static final int BLOCKS = 15;
 
         /**
          * The blocks width.
          */
-        protected final static double BLOCK_WIDTH =
+        protected static final double BLOCK_WIDTH =
             PREFERRED_WIDTH-BLOCK_MARGIN*2;
 
         /**
          * The blocks height.
          */
-        protected final static double BLOCK_HEIGHT =
+        protected static final double BLOCK_HEIGHT =
             ((double)PREFERRED_HEIGHT-(3*FONT_SIZE)-BLOCKS) / BLOCKS;
 
         /**
          * The blocks type.
          */
-        protected final static int[] BLOCK_TYPE =
+        protected static final int[] BLOCK_TYPE =
             { 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 };
 
         /**
@@ -324,7 +324,7 @@
             new Color(255, 0, 0),
             new Color(255, 165, 0),
             new Color(0, 255, 0)
-        }; 
+        };
 
         /**
          * The color of the free blocks for each block type.
@@ -333,7 +333,7 @@
             new Color(130, 0, 0),
             new Color(130, 90, 0),
             new Color(0, 130, 0)
-        }; 
+        };
 
         /**
          * The font used to draw the strings.
@@ -386,42 +386,42 @@
         public void setLowUsedMemoryColor(Color c) {
             usedColors[2] = c;
         }
-        
+
         /**
          * Sets the medium used memory block color.
          */
         public void setMediumUsedMemoryColor(Color c) {
             usedColors[1] = c;
         }
-        
+
         /**
          * Sets the high used memory block color.
          */
         public void setHighUsedMemoryColor(Color c) {
             usedColors[0] = c;
         }
-        
+
         /**
          * Sets the low free memory block color.
          */
         public void setLowFreeMemoryColor(Color c) {
             freeColors[2] = c;
         }
-        
+
         /**
          * Sets the medium free memory block color.
          */
         public void setMediumFreeMemoryColor(Color c) {
             freeColors[1] = c;
         }
-        
+
         /**
          * Sets the high free memory block color.
          */
         public void setHighFreeMemoryColor(Color c) {
             freeColors[0] = c;
         }
-        
+
         /**
          * To paint the component.
          */
@@ -434,11 +434,11 @@
             double sx = ((double)dim.width) / PREFERRED_WIDTH;
             double sy = ((double)dim.height) / PREFERRED_HEIGHT;
             g2d.transform(AffineTransform.getScaleInstance(sx, sy));
-            
+
             // Turns the antialiasing on
             g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                  RenderingHints.VALUE_ANTIALIAS_ON);
-            
+
             // Draw the memory blocks
             int nfree = (int)Math.round(((double)BLOCKS)
                                         * freeMemory / totalMemory);
@@ -464,7 +464,7 @@
             // Draw the memory usage text
             g2d.setPaint(textColor);
             g2d.setFont(font);
-            
+
             long total = totalMemory / 1024;
             long used  = (totalMemory - freeMemory) / 1024;
             String totalText;
@@ -489,28 +489,28 @@
         /**
          * The preferred width.
          */
-        public final static int PREFERRED_WIDTH = 200;
+        public static final int PREFERRED_WIDTH = 200;
 
         /**
          * The preferred height.
          */
-        public final static int PREFERRED_HEIGHT = 100;
+        public static final int PREFERRED_HEIGHT = 100;
 
         /**
          * The grid lines stroke.
          */
-        protected final static Stroke GRID_LINES_STROKE = new BasicStroke(1);
+        protected static final Stroke GRID_LINES_STROKE = new BasicStroke(1);
 
         /**
          * The curve stroke.
          */
-        protected final static Stroke CURVE_STROKE =
+        protected static final Stroke CURVE_STROKE =
             new BasicStroke(2, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
 
         /**
          * The border stroke.
          */
-        protected final static Stroke BORDER_STROKE = new BasicStroke(2);
+        protected static final Stroke BORDER_STROKE = new BasicStroke(2);
 
         /**
          * The grid lines color.
@@ -600,13 +600,13 @@
             // Turns the antialiasing on
             g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                  RenderingHints.VALUE_ANTIALIAS_ON);
-            
+
             // Sets the transform
             Dimension dim = getSize();
             double sx = ((double)dim.width) / PREFERRED_WIDTH;
             double sy = ((double)dim.height) / PREFERRED_HEIGHT;
             g2d.transform(AffineTransform.getScaleInstance(sx, sy));
-            
+
             // The vertical lines
             g2d.setPaint(gridLinesColor);
             g2d.setStroke(GRID_LINES_STROKE);
@@ -709,7 +709,7 @@
                 } catch (InterruptedException e) {}
             }
         }
-        
+
         /**
          * Suspends the thread.
          */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/URIChooser.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/URIChooser.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/URIChooser.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/URIChooser.java Wed Nov 22 06:23:24 2006
@@ -60,17 +60,17 @@
     /**
      * The return value if 'OK' is chosen.
      */
-    public final static int OK_OPTION = 0;
+    public static final int OK_OPTION = 0;
 
     /**
      * The return value if 'Cancel' is chosen.
      */
-    public final static int CANCEL_OPTION = 1;
+    public static final int CANCEL_OPTION = 1;
 
     /**
      * The resource file name
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.util.gui.resources.URIChooserMessages";
 
     /**
@@ -86,7 +86,7 @@
         bundle = ResourceBundle.getBundle(RESOURCES, Locale.getDefault());
         resources = new ResourceManager(bundle);
     }
-    
+
     /**
      * The button factory
      */
@@ -101,7 +101,7 @@
      * The OK button
      */
     protected JButton okButton;
-    
+
     /**
      * The Clear button
      */
@@ -182,7 +182,7 @@
 
         setTitle(resources.getString("Dialog.title"));
         buttonFactory = new ButtonFactory(bundle, this);
-        
+
         getContentPane().add("North",  createURISelectionPanel());
         getContentPane().add("South",  createButtonsPanel());
     }
@@ -193,7 +193,7 @@
     protected JPanel createURISelectionPanel() {
         JPanel p = new JPanel(new GridBagLayout());
         p.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
-            
+
         ExtendedGridBagConstraints constraints;
         constraints = new ExtendedGridBagConstraints();
 
@@ -211,13 +211,13 @@
         constraints.fill = GridBagConstraints.HORIZONTAL;
         constraints.setGridBounds(0, 1, 1, 1);
         p.add(textField, constraints);
-        
+
         constraints.weightx = 0;
         constraints.weighty = 0;
         constraints.fill = GridBagConstraints.NONE;
         constraints.setGridBounds(1, 1, 1, 1);
         p.add(buttonFactory.createJButton("BrowseButton"), constraints);
-        
+
         return p;
     }
 
@@ -230,10 +230,10 @@
         p.add(okButton = buttonFactory.createJButton("OKButton"));
         p.add(buttonFactory.createJButton("CancelButton"));
         p.add(clearButton = buttonFactory.createJButton("ClearButton"));
-            
+
         okButton.setEnabled(false);
         clearButton.setEnabled(false);
-        
+
         return p;
     }
 
@@ -259,7 +259,7 @@
             updateOKButtonAction();
             updateClearButtonAction();
         }
-            
+
         public void insertUpdate(DocumentEvent e) {
             updateOKButtonAction();
             updateClearButtonAction();
@@ -268,7 +268,7 @@
         public void removeUpdate(DocumentEvent e) {
             updateOKButtonAction();
             updateClearButtonAction();
-        }       
+        }
     }
 
     /**
@@ -283,7 +283,7 @@
             if (fileFilter != null) {
                 fileChooser.setFileFilter(fileFilter);
             }
-            
+
             int choice = fileChooser.showOpenDialog(URIChooser.this);
             if (choice == JFileChooser.APPROVE_OPTION) {
                 File f = fileChooser.getSelectedFile();

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/UserStyleDialog.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/UserStyleDialog.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/UserStyleDialog.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/UserStyleDialog.java Wed Nov 22 06:23:24 2006
@@ -62,17 +62,17 @@
     /**
      * The return value if 'OK' is chosen.
      */
-    public final static int OK_OPTION = 0;
+    public static final int OK_OPTION = 0;
 
     /**
      * The return value if 'Cancel' is chosen.
      */
-    public final static int CANCEL_OPTION = 1;
+    public static final int CANCEL_OPTION = 1;
 
     /**
      * The resource file name
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.util.gui.resources.UserStyleDialog";
 
     /**
@@ -253,7 +253,7 @@
             ExtendedGridBagConstraints constraints =
                 new ExtendedGridBagConstraints();
             constraints.insets = new Insets(5, 5, 5, 5);
-            
+
             fileCheckBox =
                 new JCheckBox(resources.getString("PanelFileCheckBox.text"));
             fileCheckBox.addChangeListener(new FileCheckBoxChangeListener());
@@ -286,7 +286,7 @@
             browseButton = bf.createJButton("PanelFileBrowseButton");
             this.add(browseButton, constraints);
             browseButton.addActionListener(new FileBrowseButtonAction());
-        
+
             fileLabel.setEnabled(false);
             fileTextField.setEnabled(false);
             browseButton.setEnabled(false);
@@ -303,7 +303,7 @@
                 return null;
             }
         }
-        
+
         /**
          * Sets the current dialog path.
          */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ButtonFactory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ButtonFactory.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ButtonFactory.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ButtonFactory.java Wed Nov 22 06:23:24 2006
@@ -36,8 +36,8 @@
  * The resource entries format is (for a button named 'Button'):<br>
  * <pre>
  *   Button.text      = text
- *   Button.icon      = icon_name 
- *   Button.mnemonic  = mnemonic 
+ *   Button.icon      = icon_name
+ *   Button.mnemonic  = mnemonic
  *   Button.action    = action_name
  *   Button.selected  = true | false
  *   Button.tooltip   = tool tip text
@@ -52,12 +52,12 @@
 public class ButtonFactory extends ResourceManager {
     // Constants
     //
-    private final static String ICON_SUFFIX        = ".icon";
-    private final static String TEXT_SUFFIX        = ".text";
-    private final static String MNEMONIC_SUFFIX    = ".mnemonic";
-    private final static String ACTION_SUFFIX      = ".action";
-    private final static String SELECTED_SUFFIX    = ".selected";
-    private final static String TOOLTIP_SUFFIX     = ".tooltip";
+    private static final String ICON_SUFFIX        = ".icon";
+    private static final String TEXT_SUFFIX        = ".text";
+    private static final String MNEMONIC_SUFFIX    = ".mnemonic";
+    private static final String ACTION_SUFFIX      = ".action";
+    private static final String SELECTED_SUFFIX    = ".selected";
+    private static final String TOOLTIP_SUFFIX     = ".tooltip";
 
     /** The table which contains the actions */
     private ActionMap actions;
@@ -145,7 +145,7 @@
             result.setSelected(getBoolean(name+SELECTED_SUFFIX));
         } catch (MissingResourceException e) {
         }
-        
+
         return result;
     }
 
@@ -171,7 +171,7 @@
             result.setSelected(getBoolean(name+SELECTED_SUFFIX));
         } catch (MissingResourceException e) {
         }
-        
+
         return result;
     }
 

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/MenuFactory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/MenuFactory.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/MenuFactory.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/MenuFactory.java Wed Nov 22 06:23:24 2006
@@ -47,9 +47,9 @@
  *
  *   Menu1.type        = RADIO | CHECK | MENU | ITEM
  *   Menu1             = Item1 Item2 - Item3 ...
- *   Menu1.text        = text 
- *   Menu1.icon        = icon_name 
- *   Menu1.mnemonic    = mnemonic 
+ *   Menu1.text        = text
+ *   Menu1.icon        = icon_name
+ *   Menu1.mnemonic    = mnemonic
  *   Menu1.accelerator = accelerator
  *   Menu1.action      = action_name
  *   Menu1.selected    = true | false
@@ -68,20 +68,20 @@
 public class MenuFactory extends ResourceManager {
     // Constants
     //
-    private final static String TYPE_MENU          = "MENU";
-    private final static String TYPE_ITEM          = "ITEM";
-    private final static String TYPE_RADIO         = "RADIO";
-    private final static String TYPE_CHECK         = "CHECK";
-    private final static String SEPARATOR          = "-";
-
-    private final static String TYPE_SUFFIX        = ".type";
-    private final static String TEXT_SUFFIX        = ".text";
-    private final static String MNEMONIC_SUFFIX    = ".mnemonic";
-    private final static String ACCELERATOR_SUFFIX = ".accelerator";
-    private final static String ACTION_SUFFIX      = ".action";
-    private final static String SELECTED_SUFFIX    = ".selected";
-    private final static String ENABLED_SUFFIX     = ".enabled";
-    private final static String ICON_SUFFIX        = ".icon";
+    private static final String TYPE_MENU          = "MENU";
+    private static final String TYPE_ITEM          = "ITEM";
+    private static final String TYPE_RADIO         = "RADIO";
+    private static final String TYPE_CHECK         = "CHECK";
+    private static final String SEPARATOR          = "-";
+
+    private static final String TYPE_SUFFIX        = ".type";
+    private static final String TEXT_SUFFIX        = ".text";
+    private static final String MNEMONIC_SUFFIX    = ".mnemonic";
+    private static final String ACCELERATOR_SUFFIX = ".accelerator";
+    private static final String ACTION_SUFFIX      = ".action";
+    private static final String SELECTED_SUFFIX    = ".selected";
+    private static final String ENABLED_SUFFIX     = ".enabled";
+    private static final String ICON_SUFFIX        = ".icon";
 
     /**
      * The table which contains the actions
@@ -174,7 +174,7 @@
                                               bundle.getClass().getName(),
                                               name+TYPE_SUFFIX);
         }
-        
+
         return item;
     }
 
@@ -252,7 +252,7 @@
             result.setSelected(getBoolean(name+SELECTED_SUFFIX));
         } catch (MissingResourceException e) {
         }
-        
+
         return result;
     }
 
@@ -281,7 +281,7 @@
             result.setSelected(getBoolean(name+SELECTED_SUFFIX));
         } catch (MissingResourceException e) {
         }
-        
+
         return result;
     }
 

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ToolBarFactory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ToolBarFactory.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ToolBarFactory.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/gui/resource/ToolBarFactory.java Wed Nov 22 06:23:24 2006
@@ -46,7 +46,7 @@
 public class ToolBarFactory extends ResourceManager {
     // Constants
     //
-    private final static String SEPARATOR = "-";
+    private static final String SEPARATOR = "-";
 
     /**
      * The button factory

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/AbstractCharDecoder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/AbstractCharDecoder.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/AbstractCharDecoder.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/AbstractCharDecoder.java Wed Nov 22 06:23:24 2006
@@ -32,13 +32,13 @@
     /**
      * The buffer size.
      */
-    protected final static int BUFFER_SIZE = 8192;
+    protected static final int BUFFER_SIZE = 8192;
 
     /**
      * The input stream to read.
      */
     protected InputStream inputStream;
-    
+
     /**
      * The input buffer.
      */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/Messages.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/Messages.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/Messages.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/Messages.java Wed Nov 22 06:23:24 2006
@@ -40,7 +40,7 @@
     /**
      * The error messages bundle class name.
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.util.io.Messages";
 
     /**

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/NormalizingReader.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/NormalizingReader.java?view=diff&rev=478169&r1=478168&r2=478169
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/NormalizingReader.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/io/NormalizingReader.java Wed Nov 22 06:23:24 2006
@@ -39,7 +39,7 @@
      * @return The number of characters read, or -1 if the end of the
      * stream has been reached
      */
-    public int read(char cbuf[], int off, int len) throws IOException {
+    public int read(char[] cbuf, int off, int len) throws IOException {
         if (len == 0) {
             return 0;
         }