From 2f0d5f0a127d671be5aeac7748ed8c6d083601b4 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 21 Feb 2006 12:46:05 +0000 Subject: [PATCH] Oh well, let's remove the "enum" tokens entirely. Maybe Gump is happier this way. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@379439 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 1 + src/org/apache/fop/fonts/apps/PFMReader.java | 4 ++-- src/org/apache/fop/fonts/apps/TTFReader.java | 10 +++++----- src/org/apache/fop/messaging/MessageHandler.java | 12 ++++++------ src/org/apache/fop/render/ps/PSRenderer.java | 12 ++++++------ 5 files changed, 20 insertions(+), 19 deletions(-) diff --git a/build.xml b/build.xml index 2e742ae8f..c778260f5 100644 --- a/build.xml +++ b/build.xml @@ -671,6 +671,7 @@ Sometimes ant gives out this warnings, but the build is finished without any pro bottom="Copyright © ${year} Apache Software Foundation. All Rights Reserved." overview="${build.src}/overview.html" use="true" + source="${javac.source}" failonerror="true"> diff --git a/src/org/apache/fop/fonts/apps/PFMReader.java b/src/org/apache/fop/fonts/apps/PFMReader.java index 0dbee9a6a..1785688d9 100644 --- a/src/org/apache/fop/fonts/apps/PFMReader.java +++ b/src/org/apache/fop/fonts/apps/PFMReader.java @@ -371,8 +371,8 @@ public class PFMReader extends AbstractLogEnabled { // Get kerning - for (Iterator enum = pfm.getKerning().keySet().iterator(); enum.hasNext(); ) { - Integer kpx1 = (Integer)enum.next(); + for (Iterator iter = pfm.getKerning().keySet().iterator(); iter.hasNext(); ) { + Integer kpx1 = (Integer)iter.next(); el = doc.createElement("kerning"); el.setAttribute("kpx1", kpx1.toString()); root.appendChild(el); diff --git a/src/org/apache/fop/fonts/apps/TTFReader.java b/src/org/apache/fop/fonts/apps/TTFReader.java index de6b1b63c..344cd30ce 100644 --- a/src/org/apache/fop/fonts/apps/TTFReader.java +++ b/src/org/apache/fop/fonts/apps/TTFReader.java @@ -426,14 +426,14 @@ public class TTFReader { } // Get kerning - Iterator enum; + Iterator iter; if (isCid) - enum = ttf.getKerning().keySet().iterator(); + iter = ttf.getKerning().keySet().iterator(); else - enum = ttf.getAnsiKerning().keySet().iterator(); + iter = ttf.getAnsiKerning().keySet().iterator(); - while (enum.hasNext()) { - Integer kpx1 = (Integer)enum.next(); + while (iter.hasNext()) { + Integer kpx1 = (Integer)iter.next(); el = doc.createElement("kerning"); el.setAttribute("kpx1", kpx1.toString()); diff --git a/src/org/apache/fop/messaging/MessageHandler.java b/src/org/apache/fop/messaging/MessageHandler.java index 16c4bc322..602d7fd2a 100644 --- a/src/org/apache/fop/messaging/MessageHandler.java +++ b/src/org/apache/fop/messaging/MessageHandler.java @@ -159,9 +159,9 @@ public class MessageHandler { break; case EVENT: setMessage(message); - Enumeration enum = listeners.elements(); - while (enum.hasMoreElements()) { - ((MessageListener)enum.nextElement()).processMessage(new MessageEvent(getMessage())); + Enumeration en = listeners.elements(); + while (en.hasMoreElements()) { + ((MessageListener)en.nextElement()).processMessage(new MessageEvent(getMessage())); } break; case NONE: @@ -208,11 +208,11 @@ public class MessageHandler { break; case EVENT: setMessage(message); - Enumeration enum = listeners.elements(); - while (enum.hasMoreElements()) { + Enumeration en = listeners.elements(); + while (en.hasMoreElements()) { MessageEvent messEv = new MessageEvent(getMessage()); messEv.setMessageType(MessageEvent.ERROR); - ((MessageListener)enum.nextElement()).processMessage(messEv); + ((MessageListener)en.nextElement()).processMessage(messEv); } break; case NONE: diff --git a/src/org/apache/fop/render/ps/PSRenderer.java b/src/org/apache/fop/render/ps/PSRenderer.java index 802551a19..d887103a7 100644 --- a/src/org/apache/fop/render/ps/PSRenderer.java +++ b/src/org/apache/fop/render/ps/PSRenderer.java @@ -319,9 +319,9 @@ public class PSRenderer extends AbstractRenderer { // write("/gfF1{/Helvetica findfont} bd"); // write("/gfF3{/Helvetica-Bold findfont} bd"); Map fonts = fontInfo.getFonts(); - Iterator enum = fonts.keySet().iterator(); - while (enum.hasNext()) { - String key = (String)enum.next(); + Iterator iter = fonts.keySet().iterator(); + while (iter.hasNext()) { + String key = (String)iter.next(); Font fm = (Font)fonts.get(key); write("/" + key + " /" + fm.fontName() + " def"); } @@ -330,9 +330,9 @@ public class PSRenderer extends AbstractRenderer { defineWinAnsiEncoding(); //Rewrite font encodings - enum = fonts.keySet().iterator(); - while (enum.hasNext()) { - String key = (String)enum.next(); + iter = fonts.keySet().iterator(); + while (iter.hasNext()) { + String key = (String)iter.next(); Font fm = (Font)fonts.get(key); if (null == fm.encoding()) { //ignore (ZapfDingbats and Symbol run through here -- 2.39.5