]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix to remove unnecessary imports of Constants interface.
authorGlen Mazza <gmazza@apache.org>
Sun, 4 Jan 2004 05:42:03 +0000 (05:42 +0000)
committerGlen Mazza <gmazza@apache.org>
Sun, 4 Jan 2004 05:42:03 +0000 (05:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197109 13f79535-47bb-0310-9956-ffa450edef68

src/codegen/properties.xsl

index afe8af966ccb8bee219e2bdf1db4fac5a97d265b..73c9cdedc1189ac840eb8a890b675e4432cfdff4 100644 (file)
@@ -311,7 +311,7 @@ Software Foundation, please see <http://www.apache.org/>.
 
     <redirect:write select="concat($classname, '.java')">
       <xsl:text>package org.apache.fop.fo.properties;
-import org.apache.fop.fo.Constants;
+      
 </xsl:text>
       <xsl:if test=".//keyword-equiv or ./name[.='generic-color']">
         <xsl:text>
@@ -338,6 +338,10 @@ import org.apache.fop.fo.*;</xsl:text>
         <xsl:text>
 import org.apache.fop.apps.FOPException;</xsl:text>
       </xsl:if>
+  <xsl:if test=".//enumeration and @type='generic'">
+    <xsl:text>
+import org.apache.fop.fo.Constants;</xsl:text>
+</xsl:if>
       <xsl:text>
 
 public class </xsl:text>