pietsch     2003/06/30 14:04:06

  Modified:    src/java/org/apache/fop/rtf/rtflib/rtfdoc RtfPage.java
               src/java/org/apache/fop/rtf/renderer RTFHandler.java
               src/java/org/apache/fop/datatypes FixedLength.java
               src/java/org/apache/fop/svg PDFTranscoder.java
               src/java/org/apache/fop/pdf PDFText.java
               src/java/org/apache/fop/fo FOTreeBuilder.java
  Log:
  Got some low hanging style errors as reported by eclipse.
  
  Revision  Changes    Path
  1.4       +4 -5      xml-fop/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java
  
  Index: RtfPage.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RtfPage.java      30 Jun 2003 00:20:07 -0000      1.3
  +++ RtfPage.java      30 Jun 2003 21:04:06 -0000      1.4
  @@ -58,12 +58,11 @@
   
   package org.apache.fop.rtf.rtflib.rtfdoc;
   
  -import java.io.Writer;
  -import java.io.*;
  -import java.util.*;
   import java.io.IOException;
  +import java.io.Writer;
  +
   /** Specifies rtf control words.  Is the container for page attributes.
  - *    Overrides okToWriteRtf.
  + *  Overrides okToWriteRtf.
    *  @author Christopher Scott, [EMAIL PROTECTED]
    */
   
  
  
  
  1.8       +8 -14     xml-fop/src/java/org/apache/fop/rtf/renderer/RTFHandler.java
  
  Index: RTFHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/rtf/renderer/RTFHandler.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- RTFHandler.java   29 Jun 2003 19:34:34 -0000      1.7
  +++ RTFHandler.java   30 Jun 2003 21:04:06 -0000      1.8
  @@ -51,23 +51,15 @@
   package org.apache.fop.rtf.renderer;
   
   // Java
  +import java.io.IOException;
   import java.io.OutputStream;
   import java.io.OutputStreamWriter;
  -import java.io.IOException;
   
  -// XML
  -import org.xml.sax.SAXException;
  -
  -// FOP
  -import org.apache.fop.layout.FontInfo;
   import org.apache.fop.apps.FOPException;
  -import org.apache.fop.fo.PropertyList;
   import org.apache.fop.fo.StructureHandler;
  -import org.apache.fop.fo.pagination.PageSequence;
  -import org.apache.fop.fo.properties.Constants;
   import org.apache.fop.fo.flow.Block;
  -import org.apache.fop.fo.flow.Flow;
   import org.apache.fop.fo.flow.ExternalGraphic;
  +import org.apache.fop.fo.flow.Flow;
   import org.apache.fop.fo.flow.InstreamForeignObject;
   import org.apache.fop.fo.flow.Leader;
   import org.apache.fop.fo.flow.ListBlock;
  @@ -76,14 +68,16 @@
   import org.apache.fop.fo.flow.TableBody;
   import org.apache.fop.fo.flow.TableCell;
   import org.apache.fop.fo.flow.TableRow;
  -
  -// JFOR
  +import org.apache.fop.fo.pagination.PageSequence;
  +import org.apache.fop.fo.properties.Constants;
  +import org.apache.fop.layout.FontInfo;
   import org.apache.fop.rtf.rtflib.rtfdoc.RtfAttributes;
  +import org.apache.fop.rtf.rtflib.rtfdoc.RtfDocumentArea;
   import org.apache.fop.rtf.rtflib.rtfdoc.RtfFile;
  +import org.apache.fop.rtf.rtflib.rtfdoc.RtfParagraph;
   import org.apache.fop.rtf.rtflib.rtfdoc.RtfSection;
   import org.apache.fop.rtf.rtflib.rtfdoc.RtfText;
  -import org.apache.fop.rtf.rtflib.rtfdoc.RtfParagraph;
  -import org.apache.fop.rtf.rtflib.rtfdoc.RtfDocumentArea;
  +import org.xml.sax.SAXException;
   
   /**
    * RTF Handler: generates RTF output using the structure events from
  
  
  
  1.2       +2 -1      xml-fop/src/java/org/apache/fop/datatypes/FixedLength.java
  
  Index: FixedLength.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/datatypes/FixedLength.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FixedLength.java  11 Mar 2003 13:05:36 -0000      1.1
  +++ FixedLength.java  30 Jun 2003 21:04:06 -0000      1.2
  @@ -94,7 +94,8 @@
           } else if (unit.equals("mm")) {
               dvalue = dvalue * 2.83464567;
           } else if (unit.equals("pt")) {
  -            dvalue = dvalue;
  +            // Do nothing.
  +            // dvalue = dvalue;
           } else if (unit.equals("pc")) {
               dvalue = dvalue * 12;
               /*
  
  
  
  1.3       +5 -29     xml-fop/src/java/org/apache/fop/svg/PDFTranscoder.java
  
  Index: PDFTranscoder.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/svg/PDFTranscoder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PDFTranscoder.java        27 Mar 2003 11:24:40 -0000      1.2
  +++ PDFTranscoder.java        30 Jun 2003 21:04:06 -0000      1.3
  @@ -50,53 +50,29 @@
    */ 
   package org.apache.fop.svg;
   
  -import java.awt.Dimension;
  -
  +import java.awt.Color;
   import java.awt.geom.AffineTransform;
  -import java.awt.geom.Dimension2D;
   import java.awt.geom.Rectangle2D;
  -
  -import java.awt.Color;
  -
  +import java.io.IOException;
   import java.net.MalformedURLException;
   import java.net.URL;
   
  -import java.io.IOException;
  -
   import org.apache.avalon.framework.configuration.Configurable;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.avalon.framework.container.ContainerUtil;
  -import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.batik.bridge.BridgeContext;
   import org.apache.batik.bridge.BridgeException;
   import org.apache.batik.bridge.GVTBuilder;
  -import org.apache.batik.bridge.UserAgent;
  -import org.apache.batik.bridge.UserAgentAdapter;
   import org.apache.batik.bridge.ViewBox;
  -
  -import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
  -import org.apache.batik.dom.svg.SVGDOMImplementation;
   import org.apache.batik.dom.svg.SVGOMDocument;
  -import org.apache.batik.dom.util.DocumentFactory;
  -
   import org.apache.batik.gvt.GraphicsNode;
  -
  -import org.apache.batik.transcoder.ErrorHandler;
  +import org.apache.batik.gvt.TextPainter;
  +import org.apache.batik.gvt.renderer.StrokingTextPainter;
   import org.apache.batik.transcoder.TranscoderException;
   import org.apache.batik.transcoder.TranscoderOutput;
  -import org.apache.batik.transcoder.XMLAbstractTranscoder;
  -import org.apache.batik.transcoder.image.resources.Messages;
  -
   import org.apache.batik.transcoder.image.ImageTranscoder;
  -
  -import org.apache.batik.util.SVGConstants;
  -import org.apache.batik.util.XMLResourceDescriptor;
  -
  -import org.apache.batik.gvt.TextPainter;
  -import org.apache.batik.gvt.renderer.StrokingTextPainter;
  -
  -import org.w3c.dom.DOMImplementation;
  +import org.apache.batik.transcoder.image.resources.Messages;
   import org.w3c.dom.Document;
   import org.w3c.dom.svg.SVGDocument;
   import org.w3c.dom.svg.SVGSVGElement;
  
  
  
  1.2       +0 -1      xml-fop/src/java/org/apache/fop/pdf/PDFText.java
  
  Index: PDFText.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/pdf/PDFText.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PDFText.java      27 Mar 2003 10:22:03 -0000      1.1
  +++ PDFText.java      30 Jun 2003 21:04:06 -0000      1.2
  @@ -51,7 +51,6 @@
   package org.apache.fop.pdf;
   
   import java.io.ByteArrayOutputStream;
  -import java.io.UnsupportedEncodingException;
   
   import org.apache.avalon.framework.CascadingRuntimeException;
   
  
  
  
  1.4       +5 -11     xml-fop/src/java/org/apache/fop/fo/FOTreeBuilder.java
  
  Index: FOTreeBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FOTreeBuilder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FOTreeBuilder.java        29 Jun 2003 19:34:33 -0000      1.3
  +++ FOTreeBuilder.java        30 Jun 2003 21:04:06 -0000      1.4
  @@ -51,22 +51,16 @@
   package org.apache.fop.fo;
   
   // FOP
  -import org.apache.fop.apps.FOPException;
  -
  -// Java
   import java.util.HashMap;
   import java.util.Map;
   import java.util.Set;
   
  -// SAX
  -import org.xml.sax.helpers.DefaultHandler;
  -import org.xml.sax.SAXException;
  -import org.xml.sax.Attributes;
  -
  -// Avalon
   import org.apache.avalon.framework.logger.Logger;
  -import org.apache.fop.fo.ElementMapping.*;
  -import org.apache.fop.fo.ElementMapping.*;
  +import org.apache.fop.apps.FOPException;
  +import org.apache.fop.fo.ElementMapping.Maker;
  +import org.xml.sax.Attributes;
  +import org.xml.sax.SAXException;
  +import org.xml.sax.helpers.DefaultHandler;
   
   /**
    * SAX Handler that builds the formatting object tree.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to