]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Got some low hanging style errors as reported by eclipse.
authorJoerg Pietschmann <pietsch@apache.org>
Mon, 30 Jun 2003 21:04:06 +0000 (21:04 +0000)
committerJoerg Pietschmann <pietsch@apache.org>
Mon, 30 Jun 2003 21:04:06 +0000 (21:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196551 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/datatypes/FixedLength.java
src/java/org/apache/fop/fo/FOTreeBuilder.java
src/java/org/apache/fop/pdf/PDFText.java
src/java/org/apache/fop/rtf/renderer/RTFHandler.java
src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java
src/java/org/apache/fop/svg/PDFTranscoder.java

index 9d36055381ad9ed707dfa6aba5c9eb590738c29a..b6b2469494385838949635a2d7bb9e45bf05acb8 100644 (file)
@@ -94,7 +94,8 @@ public class FixedLength extends Length {
         } 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;
             /*
index b9462feed7110212a68019911eb7d656f1d3995a..d3c6598033be40198bdb2614ba0f937d8c2ac688 100644 (file)
 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.
index 66329094011f47c39e2dcce44f9e5a602280b290..ba4576ec521f8c4e7e09d504316a5d868bf0eaa1 100644 (file)
@@ -51,7 +51,6 @@
 package org.apache.fop.pdf;
 
 import java.io.ByteArrayOutputStream;
-import java.io.UnsupportedEncodingException;
 
 import org.apache.avalon.framework.CascadingRuntimeException;
 
index 91814e97d7dcc081e3d9d0a574c91b6bc1d9cbd5..a59e93059d20d20ae9ecd30c6d66b336fb987d46 100644 (file)
 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.Table;
 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
index a4a23cd16a736b88a183539de857371a56ebdf3a..a6f45094bbe2d7249b57a1498f2229e4c6c946b7 100644 (file)
 
 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, scottc@westinghouse.com
  */
 
index 6f077458b81fa67c22a09ff1da7af744ecae8c1f..8ccc05a45a8ff56a5d4162e7ff8eb66b05a3a671 100644 (file)
  */ 
 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;