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 18:29:43 UTC

svn commit: r478249 [1/5] - in /xmlgraphics/batik/trunk/sources/org/apache/batik: dom/ dom/anim/ dom/events/ dom/svg/ dom/svg12/ dom/traversal/ dom/util/ ext/awt/font/ ext/awt/g2d/ ext/awt/geom/ ext/awt/image/ ext/awt/image/codec/png/ ext/awt/image/cod...

Author: dvholten
Date: Wed Nov 22 09:29:37 2006
New Revision: 478249

URL: http://svn.apache.org/viewvc?view=rev&rev=478249
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/dom/AbstractDocument.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractNode.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractParentNode.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractStylableDocument.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/DomExtension.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/ExtensibleDOMImplementation.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDOMImplementation.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDocument.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/anim/AnimationTarget.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/NodeEventTarget.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGAnimatedLength.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLength.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLengthList.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGMatrix.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNormPathSegList.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNumberList.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SAXSVGDocumentFactory.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGContext.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGDOMImplementation.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGExternalResourcesRequiredSupport.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAltGlyphElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAngle.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateMotionElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateTransformElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMClipPathElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMColorProfileElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMComponentTransferFunctionElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMCursorElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMDocument.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMFEBlendElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMFEColorMatrixElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMFECompositeElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMFEConvolveMatrixElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMFEDisplacementMapElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMFEImageElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMFEMorphologyElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMFETurbulenceElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMFilterElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMGlyphRefElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMGradientElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMImageElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMMPathElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMMarkerElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMMaskElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMPatternElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMSVGElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMScriptElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMSymbolElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMTextContentElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMTextPathElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMUseElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMViewElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGPathSupport.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGTextContent.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGTextPositioningElementSupport.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg12/SVG12DOMImplementation.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/traversal/DOMNodeIterator.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/util/ListNodeList.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/font/TextPathLayout.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/g2d/AbstractGraphics2D.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/g2d/GraphicContext.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/g2d/TransformStackElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/AbstractSegment.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/Cubic.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/ExtendedShape.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/Linear.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/Polygon2D.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/Polyline2D.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/Quadradic.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/RectListManager.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/Segment.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/SegmentList.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/ComponentTransferFunction.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/CompositeRule.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/ConcreteComponentTransferFunction.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/DistantLight.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/GraphicsUtil.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/Light.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/PointLight.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/png/PNGImageDecoder.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/png/PNGRed.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFDirectory.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFFaxDecoder.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImage.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFImageEncoder.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFLZWDecoder.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/util/ForwardSeekableStream.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/util/ImageEncoder.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/util/PropertyUtil.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/util/SeekableOutputStream.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/image/codec/util/SimpleRenderedImage.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/swing/GridBagConstants.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/swing/JAffineTransformChooser.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/swing/JGridBagPanel.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/swing/Messages.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/swing/Resources.java

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractDocument.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractDocument.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractDocument.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractDocument.java Wed Nov 22 09:29:37 2006
@@ -96,7 +96,7 @@
     /**
      * The error messages bundle class name.
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.dom.resources.Messages";
 
     /**
@@ -199,7 +199,7 @@
         if (dt != null) {
             if (dt instanceof GenericDocumentType) {
                 GenericDocumentType gdt = (GenericDocumentType)dt;
-                if (gdt.getOwnerDocument() == null) 
+                if (gdt.getOwnerDocument() == null)
                     gdt.setOwnerDocument(this);
             }
             appendChild(dt);
@@ -335,7 +335,7 @@
      */
     public Node importNode(Node importedNode, boolean deep, boolean trimId) {
         /*
-         * The trimming of id's is used by the 'use' element to keep 
+         * The trimming of id's is used by the 'use' element to keep
          * down the amount of 'bogus' id's in the hashtable.
          */
         Node result;
@@ -357,38 +357,38 @@
                 }
             }
             break;
-            
+
         case ATTRIBUTE_NODE:
             result = createAttributeNS(importedNode.getNamespaceURI(),
                                        importedNode.getNodeName());
             break;
-            
+
         case TEXT_NODE:
             result = createTextNode(importedNode.getNodeValue());
             deep = false;
             break;
-            
+
         case CDATA_SECTION_NODE:
             result = createCDATASection(importedNode.getNodeValue());
             deep = false;
             break;
-            
+
         case ENTITY_REFERENCE_NODE:
             result = createEntityReference(importedNode.getNodeName());
             break;
-            
+
         case PROCESSING_INSTRUCTION_NODE:
             result = createProcessingInstruction
                 (importedNode.getNodeName(),
                  importedNode.getNodeValue());
             deep = false;
             break;
-            
+
         case COMMENT_NODE:
             result = createComment(importedNode.getNodeValue());
             deep = false;
             break;
-            
+
         case DOCUMENT_FRAGMENT_NODE:
             result = createDocumentFragment();
             break;
@@ -398,7 +398,7 @@
                                      "import.node",
                                      new Object[] {});
         }
-        
+
         if (importedNode instanceof AbstractNode) {
             // Only fire the UserDataHandler if the imported node is from
             // Batik's DOM implementation.
@@ -470,7 +470,7 @@
                 return e;
             return null;
         }
-        
+
         // Not a IdSoftRef so it must be a list.
         List l = (List)o;
         Iterator li = l.iterator();
@@ -500,9 +500,9 @@
     protected class IdSoftRef extends CleanerThread.SoftReferenceCleared {
         String id;
         List   list;
-        IdSoftRef(Object o, String id) { 
+        IdSoftRef(Object o, String id) {
             super(o);
-            this.id = id; 
+            this.id = id;
         }
         IdSoftRef(Object o, String id, List list) {
             super(o);
@@ -515,7 +515,7 @@
         public void cleared() {
             if (elementsById == null) return;
             synchronized (elementsById) {
-                if (list != null) 
+                if (list != null)
                     list.remove(this);
                 else {
                   Object o = elementsById.remove(id);
@@ -541,8 +541,8 @@
             if (o instanceof IdSoftRef) {
                 elementsById.remove(id);
                 return;
-            } 
-            
+            }
+
             List l = (List)o;
             Iterator li = l.iterator();
             while (li.hasNext()) {
@@ -555,7 +555,7 @@
                     break;
                 }
             }
-            
+
             if (l.size() == 0)
                 elementsById.remove(id);
         }
@@ -587,7 +587,7 @@
                     elementsById.put(id, new IdSoftRef(e, id));
                     return;
                 }
-                
+
                 // Create new List for this id.
                 List l = new ArrayList(4);
                 ip.setList(l);
@@ -596,15 +596,15 @@
                 elementsById.put(id, l);
                 return;
             }
-            
+
             List l = (List)o;
             l.add(new IdSoftRef(e, id, l));
         }
     }
 
     public void updateIdEntry(Element e, String oldId, String newId) {
-        if ((oldId == newId) || 
-            ((oldId != null) && (oldId.equals(newId)))) 
+        if ((oldId == newId) ||
+            ((oldId != null) && (oldId.equals(newId))))
             return;
 
         removeIdEntry(e, oldId);
@@ -723,8 +723,8 @@
      * DocumentTraversal#createNodeIterator(Node,int,NodeFilter,boolean)}.
      */
     public NodeIterator createNodeIterator(Node root,
-                                           int whatToShow, 
-                                           NodeFilter filter, 
+                                           int whatToShow,
+                                           NodeFilter filter,
                                            boolean entityReferenceExpansion)
         throws DOMException {
         if (traversalSupport == null) {
@@ -739,9 +739,9 @@
      * <b>DOM</b>: Implements {@link
      * DocumentTraversal#createTreeWalker(Node,int,NodeFilter,boolean)}.
      */
-    public TreeWalker createTreeWalker(Node root, 
-                                       int whatToShow, 
-                                       NodeFilter filter, 
+    public TreeWalker createTreeWalker(Node root,
+                                       int whatToShow,
+                                       NodeFilter filter,
                                        boolean entityReferenceExpansion)
         throws DOMException {
         return TraversalSupport.createTreeWalker(this, root, whatToShow,
@@ -1352,7 +1352,7 @@
 
         NamedNodeMap nnm = e.getAttributes();
         LinkedList toRemove = new LinkedList();
-        HashMap names = new HashMap();
+        HashMap names = new HashMap();                    // todo names is not used ?
         for (int i = 0; i < nnm.getLength(); i++) {
             Attr a = (Attr) nnm.item(i);
             String prefix = a.getPrefix();
@@ -2707,7 +2707,7 @@
         s.writeObject(implementation.getClass().getName());
     }
 
-    private void readObject(ObjectInputStream s) 
+    private void readObject(ObjectInputStream s)
         throws IOException, ClassNotFoundException {
         s.defaultReadObject();
 

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractNode.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractNode.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractNode.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractNode.java Wed Nov 22 09:29:37 2006
@@ -64,7 +64,7 @@
     /**
      * An empty instance of NodeList.
      */
-    public final static NodeList EMPTY_NODE_LIST = new NodeList() {
+    public static final NodeList EMPTY_NODE_LIST = new NodeList() {
         public Node item(int i) { return null; }
         public int  getLength() { return 0; }
     };
@@ -383,7 +383,7 @@
                                                     getNodeName(),
                                                     uri });
         }
-        setNodeName(prefix + ":" + name);
+        setNodeName(prefix + ':' + name);
     }
 
     /**
@@ -599,36 +599,36 @@
         if (namespaceURI == null || namespaceURI.length() == 0) {
             return null;
         }
-        int type = getNodeType(); 
-        switch (type) { 
-            case Node.ELEMENT_NODE: 
-                return lookupNamespacePrefix(namespaceURI, (Element) this); 
+        int type = getNodeType();
+        switch (type) {
+            case Node.ELEMENT_NODE:
+                return lookupNamespacePrefix(namespaceURI, (Element) this);
             case Node.DOCUMENT_NODE:
                 AbstractNode de
                     = (AbstractNode) ((Document) this).getDocumentElement();
-                return de.lookupPrefix(namespaceURI); 
-            case Node.ENTITY_NODE : 
-            case Node.NOTATION_NODE: 
-            case Node.DOCUMENT_FRAGMENT_NODE: 
-            case Node.DOCUMENT_TYPE_NODE: 
+                return de.lookupPrefix(namespaceURI);
+            case Node.ENTITY_NODE :
+            case Node.NOTATION_NODE:
+            case Node.DOCUMENT_FRAGMENT_NODE:
+            case Node.DOCUMENT_TYPE_NODE:
                 return null;
             case Node.ATTRIBUTE_NODE:
                 AbstractNode ownerElement
                     = (AbstractNode) ((Attr) this).getOwnerElement();
                 if (ownerElement != null) {
-                    return ownerElement.lookupPrefix(namespaceURI); 
-                } 
-                return null; 
+                    return ownerElement.lookupPrefix(namespaceURI);
+                }
+                return null;
             default:
                 for (Node n = this.getParentNode();
                         n != null;
                         n = n.getParentNode()) {
                     if (n.getNodeType() == ELEMENT_NODE) {
-                        return ((AbstractNode) n).lookupPrefix(namespaceURI); 
-                    } 
-                } 
-                return null; 
-        } 
+                        return ((AbstractNode) n).lookupPrefix(namespaceURI);
+                    }
+                }
+                return null;
+        }
     }
 
     /**
@@ -661,14 +661,14 @@
                     }
                 }
             }
-        } 
+        }
         for (Node n = getParentNode(); n != null; n = n.getParentNode()) {
             if (n.getNodeType() == ELEMENT_NODE) {
                 return ((AbstractNode) n).lookupNamespacePrefix
                     (namespaceURI, originalElement);
             }
-        } 
-        return null; 
+        }
+        return null;
     }
 
     /**
@@ -693,7 +693,7 @@
                     return owner.isDefaultNamespace(namespaceURI);
                 }
                 return false;
-            case ELEMENT_NODE:  
+            case ELEMENT_NODE:
                 if (getPrefix() == null) {
                     String ns = getNamespaceURI();
                     return ns == null && namespaceURI == null
@@ -708,7 +708,7 @@
                             return attr.getNodeValue().equals(namespaceURI);
                         }
                     }
-                } 
+                }
                 // fall through
             default:
                 for (Node n = this; n != null; n = n.getParentNode()) {
@@ -726,24 +726,24 @@
      * {@link org.w3c.dom.Node#lookupNamespaceURI(String)}.
      */
     public String lookupNamespaceURI(String prefix) {
-        switch (getNodeType()) { 
-            case DOCUMENT_NODE: 
+        switch (getNodeType()) {
+            case DOCUMENT_NODE:
                 AbstractNode de =
                     (AbstractNode) ((Document) this).getDocumentElement();
                 return de.lookupNamespaceURI(prefix);
-            case ENTITY_NODE: 
-            case NOTATION_NODE: 
-            case DOCUMENT_TYPE_NODE: 
-            case DOCUMENT_FRAGMENT_NODE: 
+            case ENTITY_NODE:
+            case NOTATION_NODE:
+            case DOCUMENT_TYPE_NODE:
+            case DOCUMENT_FRAGMENT_NODE:
                 return null;
-            case ATTRIBUTE_NODE: 
+            case ATTRIBUTE_NODE:
                 AbstractNode owner
                     = (AbstractNode) ((Attr) this).getOwnerElement();
                 if (owner != null) {
-                    return owner.lookupNamespaceURI(prefix); 
+                    return owner.lookupNamespaceURI(prefix);
                 }
                 return null;
-            case ELEMENT_NODE: 
+            case ELEMENT_NODE:
                 /*String ns = getNamespaceURI();
                 if (ns != null && compareStrings(getPrefix(), prefix)) {
                     return getNamespaceURI();
@@ -768,17 +768,17 @@
                             return null;
                         }
                     }
-                } 
+                }
                 // fall through
-            default: 
+            default:
                 for (Node n = this.getParentNode(); n != null; n = n.getParentNode()) {
                     if (n.getNodeType() == ELEMENT_NODE) {
                         AbstractNode an = (AbstractNode) n;
                         return an.lookupNamespaceURI(prefix);
                     }
                 }
-                return null; 
-        } 
+                return null;
+        }
     }
 
     /**

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractParentNode.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractParentNode.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractParentNode.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractParentNode.java Wed Nov 22 09:29:37 2006
@@ -75,7 +75,7 @@
     public Node insertBefore(Node newChild, Node refChild)
         throws DOMException {
         if ((refChild != null) && ((childNodes == null) ||
-                                   (refChild.getParentNode() != this))) 
+                                   (refChild.getParentNode() != this)))
             throw createDOMException
                 (DOMException.NOT_FOUND_ERR,
                  "child.missing",
@@ -127,7 +127,7 @@
 
         if (newChild.getNodeType() == DOCUMENT_FRAGMENT_NODE) {
             Node n  = newChild.getLastChild();
-            if (n == null) 
+            if (n == null)
                 return newChild;
 
             Node ps = n.getPreviousSibling();
@@ -146,18 +146,18 @@
 
         // Mutation event
         fireDOMNodeRemovedEvent(oldChild);
-        
+
         getCurrentDocument().nodeToBeRemoved(oldChild);
         nodeToBeRemoved(oldChild);
-        
+
         // Node modification
         ExtendedNode n = (ExtendedNode)newChild;
         ExtendedNode o = childNodes.replace(n, (ExtendedNode)oldChild);
         n.setParentNode(this);
         o.setParentNode(null);
-        
+
         nodeAdded(n);
-        
+
         // Mutation event
         fireDOMNodeInsertedEvent(n);
         fireDOMSubtreeModifiedEvent();
@@ -557,9 +557,7 @@
                 table = new Node[11];
             } else if (size == table.length - 1) {
                 Node[] t = new Node[table.length * 2 + 1];
-                for (int i = 0; i < size; i++) {
-                    t[i] = table[i];
-                }
+                System.arraycopy( table, 0, t, 0, size );
                 table = t;
             }
             table[size++] = n;
@@ -589,7 +587,7 @@
                  n = n.getNextSibling()) {
                 initialize(n);
             }
-        } 
+        }
     }
 
     /**
@@ -664,9 +662,7 @@
                 table = new Node[11];
             } else if (size == table.length - 1) {
                 Node[] t = new Node[table.length * 2 + 1];
-                for (int i = 0; i < size; i++) {
-                    t[i] = table[i];
-                }
+                System.arraycopy( table, 0, t, 0, size );
                 table = t;
             }
             table[size++] = n;
@@ -700,7 +696,7 @@
                  n = n.getNextSibling()) {
                 initialize(n);
             }
-        } 
+        }
 
         private boolean nsMatch(String s1, String s2) {
             if (s1 == null && s2 == null) {

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractStylableDocument.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractStylableDocument.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractStylableDocument.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/AbstractStylableDocument.java Wed Nov 22 09:29:37 2006
@@ -57,7 +57,7 @@
     /**
      * Creates a new document.
      */
-    protected AbstractStylableDocument(DocumentType dt, 
+    protected AbstractStylableDocument(DocumentType dt,
                                        DOMImplementation impl) {
         super(dt, impl);
     }
@@ -122,4 +122,4 @@
                                                 String pseudoElt) {
         throw new RuntimeException(" !!! Not implemented");
     }
-};
+}

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/DomExtension.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/DomExtension.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/DomExtension.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/DomExtension.java Wed Nov 22 09:29:37 2006
@@ -21,7 +21,7 @@
 /**
  * This is a Service interface for classes that want to extend the
  * functionality of the AbstractDocument, to support new tags in the
- * DOM tree.  
+ * DOM tree.
  *
  * @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
  * @version $Id$
@@ -32,33 +32,33 @@
      * Return the priority of this Extension.  Extensions are
      * registered from lowest to highest priority.  So if for some
      * reason you need to come before/after another existing extension
-     * make sure your priority is lower/higher than theirs.  
+     * make sure your priority is lower/higher than theirs.
      */
-    public float getPriority();
+    float getPriority();
 
     /**
      * This should return the individual or company name responsible
      * for the this implementation of the extension.
      */
-    public String getAuthor();
+    String getAuthor();
 
     /**
      * This should return a contact address (usually an e-mail address).
      */
-    public String getContactAddress();
+    String getContactAddress();
 
     /**
      * This should return a URL where information can be obtained on
      * this extension.
      */
-    public String getURL();
+    String getURL();
 
     /**
      * Human readable description of the extension.
      * Perhaps that should be a resource for internationalization?
      * (although I suppose it could be done internally)
      */
-    public String getDescription();
+    String getDescription();
 
     /**
      * This method should update the DOMImplementation with support
@@ -70,5 +70,5 @@
      *
      * @param di The DOMImplementation instance to be updated
      */
-    public void registerTags(ExtensibleDOMImplementation di);
+    void registerTags(ExtensibleDOMImplementation di);
 }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/ExtensibleDOMImplementation.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/ExtensibleDOMImplementation.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/ExtensibleDOMImplementation.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/ExtensibleDOMImplementation.java Wed Nov 22 09:29:37 2006
@@ -54,12 +54,12 @@
  * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
  * @version $Id$
  */
-public abstract class ExtensibleDOMImplementation 
+public abstract class ExtensibleDOMImplementation
     extends AbstractDOMImplementation
     implements DOMImplementationCSS,
                StyleSheetFactory,
                Localizable {
-    
+
     /**
      * The custom elements factories.
      */
@@ -78,7 +78,7 @@
     /**
      * The error messages bundle class name.
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.dom.resources.Messages";
 
     /**
@@ -164,7 +164,7 @@
     /**
      * Creates new CSSEngine and attach it to the document.
      */
-    public CSSEngine createCSSEngine(AbstractStylableDocument doc, 
+    public CSSEngine createCSSEngine(AbstractStylableDocument doc,
                                      CSSContext ctx) {
         String pn = XMLResourceDescriptor.getCSSParserClassName();
         Parser p;
@@ -214,10 +214,10 @@
         return result;
     }
 
-    public abstract CSSEngine createCSSEngine(AbstractStylableDocument doc,  
+    public abstract CSSEngine createCSSEngine(AbstractStylableDocument doc,
                                               CSSContext               ctx,
                                               ExtendedParser           ep,
-                                              ValueManager     []      vms, 
+                                              ValueManager     []      vms,
                                               ShorthandManager []      sms);
 
     /**
@@ -268,7 +268,7 @@
 
     protected static List extensions = null;
 
-    protected synchronized static List getDomExtensions() {
+    protected static synchronized List getDomExtensions() {
         if (extensions != null)
             return extensions;
 

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDOMImplementation.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDOMImplementation.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDOMImplementation.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDOMImplementation.java Wed Nov 22 09:29:37 2006
@@ -33,7 +33,7 @@
     /**
      * The default instance of this class.
      */
-    protected final static DOMImplementation DOM_IMPLEMENTATION =
+    protected static final DOMImplementation DOM_IMPLEMENTATION =
         new GenericDOMImplementation();
 
     /**
@@ -55,8 +55,8 @@
      * <b>DOM</b>: Implements {@link
      * DOMImplementation#createDocumentType(String,String,String)}.
      */
-    public DocumentType createDocumentType(String qualifiedName, 
-                                           String publicId, 
+    public DocumentType createDocumentType(String qualifiedName,
+                                           String publicId,
                                            String systemId) {
         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                                "Doctype not supported");
@@ -66,8 +66,8 @@
      * <b>DOM</b>: Implements {@link
      * DOMImplementation#createDocument(String,String,DocumentType)}.
      */
-    public Document createDocument(String namespaceURI, 
-                                   String qualifiedName, 
+    public Document createDocument(String namespaceURI,
+                                   String qualifiedName,
                                    DocumentType doctype) throws DOMException {
         Document result = new GenericDocument(doctype, this);
         result.appendChild(result.createElementNS(namespaceURI,

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDocument.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDocument.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDocument.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/GenericDocument.java Wed Nov 22 09:29:37 2006
@@ -46,7 +46,7 @@
     /**
      * Local name for 'id' attributes.
      */
-    protected final static String ATTR_ID = XMLConstants.XML_ID_ATTRIBUTE;
+    protected static final String ATTR_ID = XMLConstants.XML_ID_ATTRIBUTE;
 
     /**
      * Is this document immutable?
@@ -81,7 +81,7 @@
     }
 
     /**
-     * Returns true if the given Attr node represents an 'id' 
+     * Returns true if the given Attr node represents an 'id'
      * for this document.
      */
     public boolean isId(Attr node) {

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/anim/AnimationTarget.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/anim/AnimationTarget.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/anim/AnimationTarget.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/anim/AnimationTarget.java Wed Nov 22 09:29:37 2006
@@ -32,10 +32,10 @@
 public interface AnimationTarget {
 
     // Constants for percentage interpretation.
-    static final short PERCENTAGE_FONT_SIZE       = 0;
-    static final short PERCENTAGE_VIEWPORT_WIDTH  = 1;
-    static final short PERCENTAGE_VIEWPORT_HEIGHT = 2;
-    static final short PERCENTAGE_VIEWPORT_SIZE   = 3;
+    short PERCENTAGE_FONT_SIZE       = 0;
+    short PERCENTAGE_VIEWPORT_WIDTH  = 1;
+    short PERCENTAGE_VIEWPORT_HEIGHT = 2;
+    short PERCENTAGE_VIEWPORT_SIZE   = 3;
 
     /**
      * Returns the element.
@@ -80,7 +80,7 @@
      * @param type the SVG length units (one of the
      *             {@link SVGLength}.SVG_LENGTH_* constants)
      * @param pcInterp how to interpretet percentage values (one of the
-     *             {@link AnimationTarget}.PERCENTAGE_* constants) 
+     *             {@link AnimationTarget}.PERCENTAGE_* constants)
      * @return the SVG value in user units
      */
     float svgToUserSpace(float v, short type, short pcInterp);

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/NodeEventTarget.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/NodeEventTarget.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/NodeEventTarget.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/NodeEventTarget.java Wed Nov 22 09:29:37 2006
@@ -44,96 +44,96 @@
     // follow.
 
     /**
-     *  This method allows the registration of an event listener in a 
-     * specified group or the default group and, depending on the 
-     * <code>useCapture</code> parameter, on the capture phase of the DOM 
-     * event flow or its target and bubbling phases. 
-     * @param namespaceURI  Specifies the <code>Event.namespaceURI</code> 
-     *   associated with the event for which the user is registering. 
-     * @param type  Specifies the <code>Event.type</code> associated with the 
-     *   event for which the user is registering. 
-     * @param listener  The <code>listener</code> parameter takes an object 
-     *   implemented by the user which implements the 
-     *   <code>EventListener</code> interface and contains the method to be 
-     *   called when the event occurs. 
-     * @param useCapture  If true, <code>useCapture</code> indicates that the 
-     *   user wishes to add the event listener for the capture phase only, 
-     *   i.e. this event listener will not be triggered during the target 
-     *   and bubbling phases. If <code>false</code>, the event listener will 
-     *   only be triggered during the target and bubbling phases. 
-     * @param evtGroup  The object that represents the event group to 
-     *   associate with the <code>EventListener</code> (see also ). Use 
-     *   <code>null</code> to attach the event listener to the default 
-     *   group. 
+     *  This method allows the registration of an event listener in a
+     * specified group or the default group and, depending on the
+     * <code>useCapture</code> parameter, on the capture phase of the DOM
+     * event flow or its target and bubbling phases.
+     * @param namespaceURI  Specifies the <code>Event.namespaceURI</code>
+     *   associated with the event for which the user is registering.
+     * @param type  Specifies the <code>Event.type</code> associated with the
+     *   event for which the user is registering.
+     * @param listener  The <code>listener</code> parameter takes an object
+     *   implemented by the user which implements the
+     *   <code>EventListener</code> interface and contains the method to be
+     *   called when the event occurs.
+     * @param useCapture  If true, <code>useCapture</code> indicates that the
+     *   user wishes to add the event listener for the capture phase only,
+     *   i.e. this event listener will not be triggered during the target
+     *   and bubbling phases. If <code>false</code>, the event listener will
+     *   only be triggered during the target and bubbling phases.
+     * @param evtGroup  The object that represents the event group to
+     *   associate with the <code>EventListener</code> (see also ). Use
+     *   <code>null</code> to attach the event listener to the default
+     *   group.
      * @since DOM Level 3
      */
-    public void addEventListenerNS(String namespaceURI, 
-                                   String type, 
-                                   org.w3c.dom.events.EventListener listener, 
-                                   boolean useCapture, 
+    void addEventListenerNS(String namespaceURI,
+                                   String type,
+                                   org.w3c.dom.events.EventListener listener,
+                                   boolean useCapture,
                                    Object evtGroup);
 
     /**
-     *  This method allows the removal of an event listener, independently of 
-     * the associated event group. 
-     * <br> Calling <code>removeEventListenerNS</code> with arguments which do 
-     * not identify any currently registered <code>EventListener</code> on 
-     * the <code>EventTarget</code> has no effect. 
-     * @param namespaceURI  Specifies the <code>Event.namespaceURI</code> 
-     *   associated with the event for which the user registered the event 
-     *   listener. 
-     * @param type  Specifies the <code>Event.type</code> associated with the 
-     *   event for which the user registered the event listener. 
-     * @param listener  The <code>EventListener</code> parameter indicates 
-     *   the <code>EventListener</code> to be removed. 
-     * @param useCapture  Specifies whether the <code>EventListener</code> 
-     *   being removed was registered for the capture phase or not. If a 
-     *   listener was registered twice, once for the capture phase and once 
-     *   for the target and bubbling phases, each must be removed 
-     *   separately. Removal of an event listener registered for the capture 
-     *   phase does not affect the same event listener registered for the 
-     *   target and bubbling phases, and vice versa. 
+     *  This method allows the removal of an event listener, independently of
+     * the associated event group.
+     * <br> Calling <code>removeEventListenerNS</code> with arguments which do
+     * not identify any currently registered <code>EventListener</code> on
+     * the <code>EventTarget</code> has no effect.
+     * @param namespaceURI  Specifies the <code>Event.namespaceURI</code>
+     *   associated with the event for which the user registered the event
+     *   listener.
+     * @param type  Specifies the <code>Event.type</code> associated with the
+     *   event for which the user registered the event listener.
+     * @param listener  The <code>EventListener</code> parameter indicates
+     *   the <code>EventListener</code> to be removed.
+     * @param useCapture  Specifies whether the <code>EventListener</code>
+     *   being removed was registered for the capture phase or not. If a
+     *   listener was registered twice, once for the capture phase and once
+     *   for the target and bubbling phases, each must be removed
+     *   separately. Removal of an event listener registered for the capture
+     *   phase does not affect the same event listener registered for the
+     *   target and bubbling phases, and vice versa.
      * @since DOM Level 3
      */
-    public void removeEventListenerNS(String namespaceURI, 
-                                      String type, 
+    void removeEventListenerNS(String namespaceURI,
+                                      String type,
                                       org.w3c.dom.events.EventListener listener,
                                       boolean useCapture);
 
     /**
-     *  This method allows the DOM application to know if an event listener, 
-     * attached to this <code>EventTarget</code> or one of its ancestors, 
-     * will be triggered by the specified event type during the dispatch of 
-     * the event to this event target or one of its descendants. 
-     * @param namespaceURI  Specifies the <code>Event.namespaceURI</code> 
-     *   associated with the event. 
-     * @param type  Specifies the <code>Event.type</code> associated with the 
-     *   event. 
-     * @return  <code>true</code> if an event listener will be triggered on 
-     *   the <code>EventTarget</code> with the specified event type, 
-     *   <code>false</code> otherwise. 
+     *  This method allows the DOM application to know if an event listener,
+     * attached to this <code>EventTarget</code> or one of its ancestors,
+     * will be triggered by the specified event type during the dispatch of
+     * the event to this event target or one of its descendants.
+     * @param namespaceURI  Specifies the <code>Event.namespaceURI</code>
+     *   associated with the event.
+     * @param type  Specifies the <code>Event.type</code> associated with the
+     *   event.
+     * @return  <code>true</code> if an event listener will be triggered on
+     *   the <code>EventTarget</code> with the specified event type,
+     *   <code>false</code> otherwise.
      * @since DOM Level 3
      */
-    public boolean willTriggerNS(String namespaceURI, 
+    boolean willTriggerNS(String namespaceURI,
                                  String type);
 
     /**
-     *  This method allows the DOM application to know if this 
-     * <code>EventTarget</code> contains an event listener registered for 
-     * the specified event type. This is useful for determining at which 
-     * nodes within a hierarchy altered handling of specific event types has 
-     * been introduced, but should not be used to determine whether the 
-     * specified event type triggers an event listener (see 
-     * <code>EventTarget.willTriggerNS()</code>). 
-     * @param namespaceURI  Specifies the <code>Event.namespaceURI</code> 
-     *   associated with the event. 
-     * @param type  Specifies the <code>Event.type</code> associated with the 
-     *   event. 
-     * @return  <code>true</code> if an event listener is registered on this 
-     *   <code>EventTarget</code> for the specified event type, 
-     *   <code>false</code> otherwise. 
+     *  This method allows the DOM application to know if this
+     * <code>EventTarget</code> contains an event listener registered for
+     * the specified event type. This is useful for determining at which
+     * nodes within a hierarchy altered handling of specific event types has
+     * been introduced, but should not be used to determine whether the
+     * specified event type triggers an event listener (see
+     * <code>EventTarget.willTriggerNS()</code>).
+     * @param namespaceURI  Specifies the <code>Event.namespaceURI</code>
+     *   associated with the event.
+     * @param type  Specifies the <code>Event.type</code> associated with the
+     *   event.
+     * @return  <code>true</code> if an event listener is registered on this
+     *   <code>EventTarget</code> for the specified event type,
+     *   <code>false</code> otherwise.
      * @since DOM Level 3
      */
-    public boolean hasEventListenerNS(String namespaceURI, 
+    boolean hasEventListenerNS(String namespaceURI,
                                       String type);
 }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGAnimatedLength.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGAnimatedLength.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGAnimatedLength.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGAnimatedLength.java Wed Nov 22 09:29:37 2006
@@ -39,19 +39,19 @@
     /**
      * This constant represents horizontal lengths.
      */
-    public final static short HORIZONTAL_LENGTH =
+    public static final short HORIZONTAL_LENGTH =
         UnitProcessor.HORIZONTAL_LENGTH;
 
     /**
      * This constant represents vertical lengths.
      */
-    public final static short VERTICAL_LENGTH =
+    public static final short VERTICAL_LENGTH =
         UnitProcessor.VERTICAL_LENGTH;
 
     /**
      * This constant represents other lengths.
      */
-    public final static short OTHER_LENGTH =
+    public static final short OTHER_LENGTH =
         UnitProcessor.OTHER_LENGTH;
 
     /**
@@ -73,7 +73,7 @@
      * Whether the value is changing.
      */
     protected boolean changing;
-    
+
     /**
      * Whether the value must be non-negative.
      */
@@ -186,7 +186,7 @@
          * Whether this length is valid.
          */
         protected boolean valid;
-        
+
         /**
          * Creates a new BaseSVGLength.
          */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLength.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLength.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLength.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLength.java Wed Nov 22 09:29:37 2006
@@ -29,7 +29,7 @@
  * Default implementation for SVGLength.
  *
  * This implementation provides the basic
- * functionalities of SVGLength. To have 
+ * functionalities of SVGLength. To have
  * a complete implementation, an element is
  * required to resolve the units.
  *
@@ -41,36 +41,36 @@
  * <code>revalidate()</code> method is being called
  * to insure the validity of the value and unit type
  * held by this object.
- * 
+ *
  * @author nicolas.socheleau@bitflash.com
  * @version $Id$
  */
-public abstract class AbstractSVGLength 
+public abstract class AbstractSVGLength
     implements SVGLength {
 
     /**
      * This constant represents horizontal lengths.
      */
-    public final static short HORIZONTAL_LENGTH =
+    public static final short HORIZONTAL_LENGTH =
         UnitProcessor.HORIZONTAL_LENGTH;
 
     /**
      * This constant represents vertical lengths.
      */
-    public final static short VERTICAL_LENGTH =
+    public static final short VERTICAL_LENGTH =
         UnitProcessor.VERTICAL_LENGTH;
 
     /**
      * This constant represents other lengths.
      */
-    public final static short OTHER_LENGTH =
+    public static final short OTHER_LENGTH =
         UnitProcessor.OTHER_LENGTH;
 
     /**
      * The type of this length.
      */
     protected short unitType;
-    
+
     /**
      * The value of this length.
      */
@@ -85,11 +85,11 @@
      * The context used to resolve the units.
      */
     protected UnitProcessor.Context context;
-    
+
     /**
      * The unit string representations.
      */
-    protected final static String[] UNITS = {
+    protected static final String[] UNITS = {
         "", "", "%", "em", "ex", "px", "cm", "mm", "in", "pt", "pc"
     };
 
@@ -115,7 +115,7 @@
         revalidate();
         return unitType;
     }
-    
+
     /**
      * <b>DOM</b>: Implements {@link SVGLength#getValue()}.
      */
@@ -140,7 +140,7 @@
                                                   direction, context);
         reset();
     }
-    
+
     /**
      * <b>DOM</b>: Implements {@link SVGLength#getValueInSpecifiedUnits()}.
      */
@@ -148,7 +148,7 @@
         revalidate();
         return value;
     }
-    
+
     /**
      * <b>DOM</b>: Implements {@link
      * SVGLength#setValueInSpecifiedUnits(float)}.
@@ -158,7 +158,7 @@
         this.value = value;
         reset();
     }
-    
+
     /**
      * <b>DOM</b>: Implements {@link SVGLength#getValueAsString()}.
      */
@@ -166,7 +166,7 @@
         revalidate();
         return Float.toString(value)+UNITS[unitType];
     }
-    
+
     /**
      * <b>DOM</b>: Implements {@link SVGLength#setValueAsString(String)}.
      */
@@ -174,7 +174,7 @@
         parse(value);
         reset();
     }
-        
+
     /**
      * <b>DOM</b>: Implements {@link
      * SVGLength#newValueSpecifiedUnits(short,float)}.
@@ -184,7 +184,7 @@
         this.value = value;
         reset();
     }
-    
+
     /**
      * <b>DOM</b>: Implements {@link
      * SVGLength#convertToSpecifiedUnits(short)}.
@@ -194,7 +194,7 @@
         unitType = unit;
         setValue(v);
     }
-    
+
     /**
      * Callback method after changes
      * made to this length.
@@ -215,7 +215,7 @@
 
     /**
      * Parse a String value as a SVGLength.
-     * 
+     *
      * Initialize this length with the result
      * of the parsing of this value.
      * @param s String representation of a SVGlength.
@@ -239,14 +239,14 @@
      * To resolve the units.
      */
     protected class DefaultContext implements UnitProcessor.Context {
-        
+
         /**
          * Returns the element.
          */
         public Element getElement() {
             return getAssociatedElement();
         }
-        
+
         /**
          * Returns the size of a px CSS unit in millimeters.
          */
@@ -254,7 +254,7 @@
             return getAssociatedElement().getSVGContext()
                 .getPixelUnitToMillimeter();
         }
-        
+
         /**
          * Returns the size of a px CSS unit in millimeters.
          * This will be removed after next release.
@@ -263,33 +263,33 @@
         public float getPixelToMM() {
             return getPixelUnitToMillimeter();
         }
-        
+
         /**
          * Returns the font-size value.
          */
         public float getFontSize() {
             return getAssociatedElement().getSVGContext().getFontSize();
         }
-        
+
         /**
          * Returns the x-height value.
          */
         public float getXHeight() {
             return 0.5f;
         }
-        
+
         /**
          * Returns the viewport width used to compute units.
          */
         public float getViewportWidth() {
             return getAssociatedElement().getSVGContext().getViewportWidth();
         }
-        
+
         /**
          * Returns the viewport height used to compute units.
          */
         public float getViewportHeight() {
             return getAssociatedElement().getSVGContext().getViewportHeight();
         }
-    }   
+    }
 }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLengthList.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLengthList.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLengthList.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGLengthList.java Wed Nov 22 09:29:37 2006
@@ -46,7 +46,7 @@
     /**
      * Separator for a length list.
      */
-    public final static String SVG_LENGTH_LIST_SEPARATOR
+    public static final String SVG_LENGTH_LIST_SEPARATOR
         = " ";
 
     /**
@@ -132,7 +132,7 @@
         return new SVGLengthItem(l.getUnitType(), l.getValueInSpecifiedUnits(),
                                  direction);
     }
-    
+
     /**
      * Parses the attribute associated with this SVGLengthList.
      *
@@ -143,9 +143,9 @@
         throws ParseException{
 
         LengthListParser lengthListParser = new LengthListParser();
-        
+
         LengthListBuilder builder = new LengthListBuilder(handler);
-        
+
         lengthListParser.setLengthListHandler(builder);
         lengthListParser.parse(value);
     }
@@ -232,7 +232,7 @@
          * The length unit just parsed.
          */
         protected short currentType;
-        
+
         /**
          * Creates a new LengthListBuilder.
          */
@@ -261,7 +261,7 @@
         public void lengthValue(float v) throws ParseException {
             currentValue = v;
         }
-        
+
         /**
          * Implements {@link LengthListHandler#em()}.
          */
@@ -282,21 +282,21 @@
         public void in() throws ParseException {
             currentType = SVGLength.SVG_LENGTHTYPE_IN;
         }
-        
+
         /**
          * Implements {@link LengthListHandler#cm()}.
          */
         public void cm() throws ParseException {
             currentType = SVGLength.SVG_LENGTHTYPE_CM;
         }
-        
+
         /**
          * Implements {@link LengthListHandler#mm()}.
          */
         public void mm() throws ParseException {
             currentType = SVGLength.SVG_LENGTHTYPE_MM;
         }
-        
+
         /**
          * Implements {@link LengthListHandler#pc()}.
          */
@@ -331,7 +331,7 @@
         public void endLength() throws ParseException {
             listHandler.item(new SVGLengthItem(currentType,currentValue,direction));
         }
-        
+
         /**
          * Implements {@link LengthListHandler#endLengthList()}.
          */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGMatrix.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGMatrix.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGMatrix.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGMatrix.java Wed Nov 22 09:29:37 2006
@@ -37,20 +37,20 @@
     /**
      * The transform used to implement flipX.
      */
-    protected final static AffineTransform FLIP_X_TRANSFORM =
+    protected static final AffineTransform FLIP_X_TRANSFORM =
         new AffineTransform(-1, 0, 0, 1, 0, 0);
 
     /**
      * The transform used to implement flipX.
      */
-    protected final static AffineTransform FLIP_Y_TRANSFORM =
+    protected static final AffineTransform FLIP_Y_TRANSFORM =
         new AffineTransform(1, 0, 0, -1, 0, 0);
 
     /**
      * Returns the associated AffineTransform.
      */
     protected abstract AffineTransform getAffineTransform();
-    
+
     /**
      * Implements {@link SVGMatrix#getA()}.
      */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNormPathSegList.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNormPathSegList.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNormPathSegList.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNormPathSegList.java Wed Nov 22 09:29:37 2006
@@ -30,21 +30,21 @@
 import org.w3c.dom.svg.SVGPathSeg;
 
 /**
- * This class is the implementation of the normalized 
+ * This class is the implementation of the normalized
  * <code>SVGPathSegList</code>.
  *
  * @author <a href="mailto:andrest@world-affair.com">Andres Toussaint</a>
  * @version $Id: AbstractSVGNormPathSegList.java 2005-07-28$
  */
 public abstract class AbstractSVGNormPathSegList extends AbstractSVGPathSegList {
-    
+
     /**
      * Creates a new SVGNormPathSegList.
      */
     protected AbstractSVGNormPathSegList() {
         super();
     }
-    
+
     /**
      * Parse the 'd' attribute.
      *
@@ -53,18 +53,18 @@
      */
     protected void doParse(String value, ListHandler handler) throws ParseException {
         PathParser pathParser = new PathParser();
-        
+
         NormalizedPathSegListBuilder builder = new NormalizedPathSegListBuilder(handler);
-        
+
         pathParser.setPathHandler(builder);
         pathParser.parse(value);
     }
-    
+
     protected class NormalizedPathSegListBuilder extends DefaultPathHandler {
-        
+
         protected ListHandler listHandler;
         protected SVGPathSegGenericItem lastAbs;
-        
+
         public NormalizedPathSegListBuilder(ListHandler listHandler){
             this.listHandler  = listHandler;
         }
@@ -76,21 +76,21 @@
             lastAbs = new SVGPathSegGenericItem(SVGPathSeg.PATHSEG_MOVETO_ABS,
                     PATHSEG_MOVETO_ABS_LETTER, 0,0,0,0,0,0);
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#endPath()}.
          */
         public void endPath() throws ParseException {
             listHandler.endList();
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#movetoRel(float,float)}.
          */
         public void movetoRel(float x, float y) throws ParseException {
             movetoAbs(lastAbs.getX() + x, lastAbs.getY() + y);
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#movetoAbs(float,float)}.
          */
@@ -102,7 +102,7 @@
             lastAbs.setY(y);
             lastAbs.setPathSegType(SVGPathSeg.PATHSEG_MOVETO_ABS);
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#closePath()}.
          */
@@ -110,14 +110,14 @@
             listHandler.item(new SVGPathSegItem
                     (SVGPathSeg.PATHSEG_CLOSEPATH,PATHSEG_CLOSEPATH_LETTER));
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#linetoRel(float,float)}.
          */
         public void linetoRel(float x, float y) throws ParseException {
             linetoAbs(lastAbs.getX() + x, lastAbs.getY() + y);
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#linetoAbs(float,float)}.
          */
@@ -129,53 +129,53 @@
             lastAbs.setY(y);
             lastAbs.setPathSegType(SVGPathSeg.PATHSEG_LINETO_ABS);
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#linetoHorizontalRel(float)}.
          */
         public void linetoHorizontalRel(float x) throws ParseException {
             linetoAbs(lastAbs.getX() + x, lastAbs.getY());
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#linetoHorizontalAbs(float)}.
          */
         public void linetoHorizontalAbs(float x) throws ParseException {
             linetoAbs(x, lastAbs.getY());
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#linetoVerticalRel(float)}.
          */
         public void linetoVerticalRel(float y) throws ParseException {
             linetoAbs(lastAbs.getX(), lastAbs.getY() + y);
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#linetoVerticalAbs(float)}.
          */
         public void linetoVerticalAbs(float y) throws ParseException {
             linetoAbs(lastAbs.getX(), y);
         }
-        
+
         /**
          * Implements {@link
          * org.apache.batik.parser.PathHandler#curvetoCubicRel(float,float,float,float,float,float)}.
          */
-        public void curvetoCubicRel(float x1, float y1, 
-                float x2, float y2, 
+        public void curvetoCubicRel(float x1, float y1,
+                float x2, float y2,
                 float x, float y) throws ParseException {
             curvetoCubicAbs(lastAbs.getX() +x1, lastAbs.getY() + y1,
                     lastAbs.getX() +x2, lastAbs.getY() + y2,
                     lastAbs.getX() +x, lastAbs.getY() + y);
         }
-        
+
         /**
          * Implements {@link
          * org.apache.batik.parser.PathHandler#curvetoCubicAbs(float,float,float,float,float,float)}.
          */
-        public void curvetoCubicAbs(float x1, float y1, 
-                float x2, float y2, 
+        public void curvetoCubicAbs(float x1, float y1,
+                float x2, float y2,
                 float x, float y) throws ParseException {
             listHandler.item(new SVGPathSegCurvetoCubicItem
                     (SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,PATHSEG_CURVETO_CUBIC_ABS_LETTER,
@@ -183,23 +183,23 @@
             lastAbs.setValue(x1,y1,x2,y2,x,y);
             lastAbs.setPathSegType(SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS);
         }
-        
+
         /**
          * Implements {@link
          * org.apache.batik.parser.PathHandler#curvetoCubicSmoothRel(float,float,float,float)}.
          */
-        public void curvetoCubicSmoothRel(float x2, float y2, 
+        public void curvetoCubicSmoothRel(float x2, float y2,
                 float x, float y) throws ParseException {
             curvetoCubicSmoothAbs(lastAbs.getX() + x2, lastAbs.getY() + y2,
                     lastAbs.getX() + x, lastAbs.getY() + y);
-            
+
         }
-        
+
         /**
          * Implements {@link
          * org.apache.batik.parser.PathHandler#curvetoCubicSmoothAbs(float,float,float,float)}.
          */
-        public void curvetoCubicSmoothAbs(float x2, float y2, 
+        public void curvetoCubicSmoothAbs(float x2, float y2,
                 float x, float y) throws ParseException {
             if (lastAbs.getPathSegType()==SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS) {
                 curvetoCubicAbs(lastAbs.getX() + (lastAbs.getX() - lastAbs.getX2()),
@@ -209,22 +209,22 @@
                 curvetoCubicAbs(lastAbs.getX(), lastAbs.getY(), x2, y2, x, y);
             }
         }
-        
+
         /**
          * Implements {@link
          * org.apache.batik.parser.PathHandler#curvetoQuadraticRel(float,float,float,float)}.
          */
-        public void curvetoQuadraticRel(float x1, float y1, 
+        public void curvetoQuadraticRel(float x1, float y1,
                 float x, float y) throws ParseException {
             curvetoQuadraticAbs(lastAbs.getX() + x1, lastAbs.getY() + y1,
                     lastAbs.getX() + x, lastAbs.getY() + y);
         }
-        
+
         /**
          * Implements {@link
          * org.apache.batik.parser.PathHandler#curvetoQuadraticAbs(float,float,float,float)}.
          */
-        public void curvetoQuadraticAbs(float x1, float y1, 
+        public void curvetoQuadraticAbs(float x1, float y1,
                 float x, float y) throws ParseException {
                         curvetoCubicAbs(lastAbs.getX() + 2 * (x1 - lastAbs.getX()) / 3,
                                                         lastAbs.getY() + 2 * (y1 - lastAbs.getY()) / 3,
@@ -235,7 +235,7 @@
                         lastAbs.setY1(y1);
                         lastAbs.setPathSegType(SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS);
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#curvetoQuadraticSmoothRel(float,float)}.
          */
@@ -243,7 +243,7 @@
         throws ParseException {
             curvetoQuadraticSmoothAbs(lastAbs.getX() + x, lastAbs.getY() + y);
         }
-        
+
         /**
          * Implements {@link org.apache.batik.parser.PathHandler#curvetoQuadraticSmoothAbs(float,float)}.
          */
@@ -258,33 +258,33 @@
             }
 
         }
-        
+
         /**
          * Implements {@link
          * org.apache.batik.parser.PathHandler#arcRel(float,float,float,boolean,boolean,float,float)}.
          */
-        public void arcRel(float rx, float ry, 
-                float xAxisRotation, 
-                boolean largeArcFlag, boolean sweepFlag, 
+        public void arcRel(float rx, float ry,
+                float xAxisRotation,
+                boolean largeArcFlag, boolean sweepFlag,
                 float x, float y) throws ParseException {
             arcAbs(rx,ry,xAxisRotation, largeArcFlag, sweepFlag, lastAbs.getX() + x, lastAbs.getY() + y);
         }
-        
+
         /**
          * Implements {@link
          * org.apache.batik.parser.PathHandler#arcAbs(float,float,float,boolean,boolean,float,float)}.
          */
-        public void arcAbs(float rx, float ry, 
-                float xAxisRotation, 
-                boolean largeArcFlag, boolean sweepFlag, 
+        public void arcAbs(float rx, float ry,
+                float xAxisRotation,
+                boolean largeArcFlag, boolean sweepFlag,
                 float x, float y) throws ParseException {
-                        
+
                         //         Ensure radii are valid
                         if (rx == 0 || ry == 0) {
                                 linetoAbs((float) x, (float) y);
                                 return;
                         }
-                        
+
                         // Get the current (x, y) coordinates of the path
                         double x0 = lastAbs.getX();
                         double y0 = lastAbs.getY();
@@ -293,22 +293,22 @@
                                 // is equivalent to omitting the elliptical arc segment entirely.
                                 return;
                         }
-                        
-                        Arc2D arc = ExtendedGeneralPath.computeArc(x0, y0, rx, ry, xAxisRotation, 
+
+                        Arc2D arc = ExtendedGeneralPath.computeArc(x0, y0, rx, ry, xAxisRotation,
                                         largeArcFlag, sweepFlag, x, y);
                         if (arc == null) return;
-                        
+
                         AffineTransform t = AffineTransform.getRotateInstance
                         (Math.toRadians(xAxisRotation), arc.getCenterX(), arc.getCenterY());
                         Shape s = t.createTransformedShape(arc);
-                        
+
                         PathIterator pi = s.getPathIterator(new AffineTransform());
-                        float d[] = {0,0,0,0,0,0};
+                        float[] d = {0,0,0,0,0,0};
                         int i = -1;
-                        
+
                         while (!pi.isDone()) {
                                 i = pi.currentSegment(d);
-                                
+
                                 switch (i) {
                                 case PathIterator.SEG_CUBICTO:
                                         curvetoCubicAbs(d[0],d[1],d[2],d[3],d[4],d[5]);
@@ -319,10 +319,10 @@
                         lastAbs.setPathSegType(SVGPathSeg.PATHSEG_ARC_ABS);
         }
     }
-    
-    
+
+
     protected class SVGPathSegGenericItem extends SVGPathSegItem {
-        
+
         public SVGPathSegGenericItem(short type, String letter,
                 float x1, float y1, float x2, float y2, float x, float y){
             super(type,letter);
@@ -333,7 +333,7 @@
             this.x = x;
             this.y = y;
         }
-        
+
         public void setValue(float x1, float y1, float x2, float y2, float x, float y) {
             this.x1 = x2;
             this.y1 = y2;
@@ -342,37 +342,37 @@
             this.x = x;
             this.y = y;
         }
-        
+
         public void setValue(float x, float y) {
             this.x = x;
             this.y = y;
         }
-        
+
         public void setPathSegType(short type) {
             this.type = type;
         }
-        
+
         public float getX(){
             return x;
         }
         public float getY(){
             return y;
         }
-        
+
         public void setX(float x){
             this.x = x;
         }
         public void setY(float y){
             this.y = y;
         }
-        
+
         public float getX1(){
             return x1;
         }
         public float getY1(){
             return y1;
         }
-        
+
         public void setX1(float x){
             this.x1 = x;
         }
@@ -385,7 +385,7 @@
         public float getY2(){
             return y2;
         }
-        
+
         public void setX2(float x){
             this.x2 = x;
         }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNumberList.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNumberList.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNumberList.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/AbstractSVGNumberList.java Wed Nov 22 09:29:37 2006
@@ -37,11 +37,11 @@
 public abstract class AbstractSVGNumberList
         extends AbstractSVGList
         implements SVGNumberList {
-    
+
     /**
      * Separator for a length list.
      */
-    public final static String SVG_NUMBER_LIST_SEPARATOR
+    public static final String SVG_NUMBER_LIST_SEPARATOR
         = " ";
 
     /**
@@ -50,7 +50,7 @@
     protected String getItemSeparator() {
         return SVG_NUMBER_LIST_SEPARATOR;
     }
-    
+
     /**
      * Create an SVGException when the {@link #checkItemType(Object)} fails.
      */
@@ -62,7 +62,7 @@
      * Returns the element associated with this SVGNumberList.
      */
     protected abstract Element getElement();
-    
+
     /**
      * Creates a new SVGNumberList.
      */
@@ -85,7 +85,7 @@
 
         return (SVGNumber)getItemImpl(index);
     }
-    
+
     /**
      * <b>DOM</b>: Implements {@link
      * SVGNumberList#insertItemBefore(SVGNumber,int)}.
@@ -128,7 +128,7 @@
         SVGNumber l = (SVGNumber)newItem;
         return new SVGNumberItem(l.getValue());
     }
-    
+
     /**
      * Parse the attribute associated with this SVGNumberList.
      * @param value attribute value
@@ -139,11 +139,11 @@
 
         NumberListParser NumberListParser = new NumberListParser();
         NumberListBuilder builder = new NumberListBuilder(handler);
-        
+
         NumberListParser.setNumberListHandler(builder);
         NumberListParser.parse(value);
     }
-    
+
     /**
      * Asserts that the given item object is an {@link SVGNumber}.
      */
@@ -155,7 +155,7 @@
                                null);
         }
     }
-    
+
     /**
      * Representation of the item SVGNumber.
      */
@@ -172,7 +172,7 @@
         public SVGNumberItem(float value) {
             this.value = value;
         }
-        
+
         /**
          * Returns a String representation of the number.
          */
@@ -204,7 +204,7 @@
             }
         }
     }
-    
+
     /**
      * Helper class to interface the {@link NumberListParser} and the
      * {@link NumberHandler}.
@@ -220,7 +220,7 @@
          * The number just parsed.
          */
         protected float currentValue;
-                
+
         /**
          * Creates a new NumberListBuilder.
          */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SAXSVGDocumentFactory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SAXSVGDocumentFactory.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SAXSVGDocumentFactory.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SAXSVGDocumentFactory.java Wed Nov 22 09:29:37 2006
@@ -76,13 +76,13 @@
     /**
      * The dtd public IDs resource bundle class name.
      */
-    protected final static String DTDIDS =
+    protected static final String DTDIDS =
         "org.apache.batik.dom.svg.resources.dtdids";
 
     /**
      * Constant for HTTP content type header charset field.
      */
-    protected final static String HTTP_CHARSET = "charset";
+    protected static final String HTTP_CHARSET = "charset";
 
     /**
      * The accepted DTD public IDs.
@@ -131,7 +131,7 @@
      * @param inp The document input stream.
      * @exception IOException if an error occured while reading the document.
      */
-    public SVGDocument createSVGDocument(String uri, InputStream inp) 
+    public SVGDocument createSVGDocument(String uri, InputStream inp)
         throws IOException {
         return (SVGDocument)createDocument(uri, inp);
     }
@@ -159,7 +159,7 @@
         InputStream is = purl.openStream(MimeTypeConstants.MIME_TYPES_SVG);
 
         InputSource isrc = new InputSource(is);
-        
+
         // now looking for a charset encoding in the content type such
         // as "image/svg+xml; charset=iso8859-1" this is not official
         // for image/svg+xml yet! only for text/xml and maybe
@@ -170,7 +170,7 @@
             contentType = contentType.toLowerCase();
             cindex = contentType.indexOf(HTTP_CHARSET);
         }
- 
+
         String charset = null;
         if (cindex != -1) {
             int i                 = cindex + HTTP_CHARSET.length();
@@ -189,7 +189,7 @@
                     idx = semiIdx;
                 if (idx != -1)
                     charset = contentType.substring(eqIdx, idx);
-                else 
+                else
                     charset = contentType.substring(eqIdx);
                 charset = charset.trim();
                 isrc.setEncoding(charset);
@@ -356,12 +356,12 @@
                 // Bootstrap if needed - move to a static block???
                 if (dtdProps == null) {
                     dtdProps = new Properties();
-                    try { 
+                    try {
                         Class cls = SAXSVGDocumentFactory.class;
                         InputStream is = cls.getResourceAsStream
                             ("resources/dtdids.properties");
                         dtdProps.load(is);
-                    } catch (IOException ioe) { 
+                    } catch (IOException ioe) {
                         throw new SAXException(ioe);
                     }
                 }
@@ -370,7 +370,7 @@
                     dtdids = dtdProps.getProperty(KEY_PUBLIC_IDS);
 
                 if (skippable_dtdids == null)
-                    skippable_dtdids = 
+                    skippable_dtdids =
                         dtdProps.getProperty(KEY_SKIPPABLE_PUBLIC_IDS);
 
                 if (skip_dtd == null)
@@ -380,7 +380,7 @@
             if (publicId == null)
                 return null; // Let SAX Parser find it.
 
-            if (!isValidating && 
+            if (!isValidating &&
                 (skippable_dtdids.indexOf(publicId) != -1)) {
                 // We are not validating and this is a DTD we can
                 // safely skip so do it...  Here we provide just enough
@@ -388,12 +388,12 @@
                 // xlink namespaces).
                 return new InputSource(new StringReader(skip_dtd));
             }
-            
+
             if (dtdids.indexOf(publicId) != -1) {
-                String localSystemId = 
-                    dtdProps.getProperty(KEY_SYSTEM_ID + 
+                String localSystemId =
+                    dtdProps.getProperty(KEY_SYSTEM_ID +
                                          publicId.replace(' ', '_'));
-                
+
                 if (localSystemId != null && !"".equals(localSystemId)) {
                     return new InputSource
                         (getClass().getResource(localSystemId).toString());

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGContext.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGContext.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGContext.java Wed Nov 22 09:29:37 2006
@@ -30,10 +30,10 @@
 public interface SVGContext {
 
     // Constants for percentage interpretation.
-    static final int PERCENTAGE_FONT_SIZE       = 0;
-    static final int PERCENTAGE_VIEWPORT_WIDTH  = 1;
-    static final int PERCENTAGE_VIEWPORT_HEIGHT = 2;
-    static final int PERCENTAGE_VIEWPORT_SIZE   = 3;
+    int PERCENTAGE_FONT_SIZE       = 0;
+    int PERCENTAGE_VIEWPORT_WIDTH  = 1;
+    int PERCENTAGE_VIEWPORT_HEIGHT = 2;
+    int PERCENTAGE_VIEWPORT_SIZE   = 3;
 
     /**
      * Returns the size of a px CSS unit in millimeters.

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGDOMImplementation.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGDOMImplementation.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGDOMImplementation.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGDOMImplementation.java Wed Nov 22 09:29:37 2006
@@ -66,13 +66,13 @@
     /**
      * The SVG namespace uri.
      */
-    public final static String SVG_NAMESPACE_URI =
+    public static final String SVG_NAMESPACE_URI =
         SVGConstants.SVG_NAMESPACE_URI;
 
     /**
      * The error messages bundle class name.
      */
-    protected final static String RESOURCES =
+    protected static final String RESOURCES =
         "org.apache.batik.dom.svg.resources.Messages";
 
     protected HashTable factories;
@@ -1591,7 +1591,7 @@
     /**
      * The default instance of this class.
      */
-    protected final static DOMImplementation DOM_IMPLEMENTATION =
+    protected static final DOMImplementation DOM_IMPLEMENTATION =
         new SVGDOMImplementation();
 
 }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGExternalResourcesRequiredSupport.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGExternalResourcesRequiredSupport.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGExternalResourcesRequiredSupport.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGExternalResourcesRequiredSupport.java Wed Nov 22 09:29:37 2006
@@ -29,7 +29,7 @@
  */
 public class SVGExternalResourcesRequiredSupport implements SVGConstants {
 
-    private final static String ATTR_NAME =
+    private static final String ATTR_NAME =
         SVG_EXTERNAL_RESOURCES_REQUIRED_ATTRIBUTE;
 
     /**

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAElement.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAElement.java Wed Nov 22 09:29:37 2006
@@ -41,7 +41,7 @@
     /**
      * The attribute initializer.
      */
-    protected final static AttributeInitializer attributeInitializer;
+    protected static final AttributeInitializer attributeInitializer;
     static {
         attributeInitializer = new AttributeInitializer(4);
         attributeInitializer.addAttribute(XMLSupport.XMLNS_NAMESPACE_URI,

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAltGlyphElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAltGlyphElement.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAltGlyphElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAltGlyphElement.java Wed Nov 22 09:29:37 2006
@@ -40,7 +40,7 @@
     /**
      * The attribute initializer.
      */
-    protected final static AttributeInitializer attributeInitializer;
+    protected static final AttributeInitializer attributeInitializer;
     static {
         attributeInitializer = new AttributeInitializer(4);
         attributeInitializer.addAttribute(XMLSupport.XMLNS_NAMESPACE_URI,

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAngle.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAngle.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAngle.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAngle.java Wed Nov 22 09:29:37 2006
@@ -46,7 +46,7 @@
     /**
      * The unit string representations.
      */
-    protected final static String[] UNITS = {
+    protected static final String[] UNITS = {
         "", "", "deg", "rad", "grad"
     };
 
@@ -57,7 +57,7 @@
         revalidate();
         return unitType;
     }
-    
+
     /**
      * <b>DOM</b>: Implements {@link SVGLength#getValue()}.
      */

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateMotionElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateMotionElement.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateMotionElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateMotionElement.java Wed Nov 22 09:29:37 2006
@@ -37,7 +37,7 @@
     /**
      * The attribute initializer.
      */
-    protected final static AttributeInitializer attributeInitializer;
+    protected static final AttributeInitializer attributeInitializer;
     static {
         attributeInitializer = new AttributeInitializer(1);
         attributeInitializer.addAttribute(null,

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateTransformElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateTransformElement.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateTransformElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMAnimateTransformElement.java Wed Nov 22 09:29:37 2006
@@ -37,7 +37,7 @@
     /**
      * The attribute initializer.
      */
-    protected final static AttributeInitializer attributeInitializer;
+    protected static final AttributeInitializer attributeInitializer;
     static {
         attributeInitializer = new AttributeInitializer(1);
         attributeInitializer.addAttribute(null,

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMClipPathElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMClipPathElement.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMClipPathElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMClipPathElement.java Wed Nov 22 09:29:37 2006
@@ -38,7 +38,7 @@
     /**
      * The clipPathUnits values.
      */
-    protected final static String[] CLIP_PATH_UNITS_VALUES = {
+    protected static final String[] CLIP_PATH_UNITS_VALUES = {
         "",
         SVG_USER_SPACE_ON_USE_VALUE,
         SVG_OBJECT_BOUNDING_BOX_VALUE

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMColorProfileElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMColorProfileElement.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMColorProfileElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMColorProfileElement.java Wed Nov 22 09:29:37 2006
@@ -41,7 +41,7 @@
     /**
      * The attribute initializer.
      */
-    protected final static AttributeInitializer attributeInitializer;
+    protected static final AttributeInitializer attributeInitializer;
     static {
         attributeInitializer = new AttributeInitializer(5);
         attributeInitializer.addAttribute(null, null,

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMComponentTransferFunctionElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMComponentTransferFunctionElement.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMComponentTransferFunctionElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMComponentTransferFunctionElement.java Wed Nov 22 09:29:37 2006
@@ -40,7 +40,7 @@
     /**
      * The 'type' attribute values.
      */
-    protected final static String[] TYPE_VALUES = {
+    protected static final String[] TYPE_VALUES = {
         "",
         SVG_IDENTITY_VALUE,
         SVG_TABLE_VALUE,

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMCursorElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMCursorElement.java?view=diff&rev=478249&r1=478248&r2=478249
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMCursorElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMCursorElement.java Wed Nov 22 09:29:37 2006
@@ -43,7 +43,7 @@
     /**
      * The attribute initializer.
      */
-    protected final static AttributeInitializer attributeInitializer;
+    protected static final AttributeInitializer attributeInitializer;
     static {
         attributeInitializer = new AttributeInitializer(4);
         attributeInitializer.addAttribute(XMLSupport.XMLNS_NAMESPACE_URI,