From e36c12bdd21f7b99c9c86c14fe61379e0b4eed9b Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Sun, 31 Aug 2014 20:08:48 +0000 Subject: [PATCH] Fix findbugs warning recently introduced by SS. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1621632 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/pdf/PDFResources.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/pdf/PDFResources.java b/src/java/org/apache/fop/pdf/PDFResources.java index 4d31e2e6a..f351b23be 100644 --- a/src/java/org/apache/fop/pdf/PDFResources.java +++ b/src/java/org/apache/fop/pdf/PDFResources.java @@ -121,8 +121,9 @@ public class PDFResources extends PDFDictionary { */ public void addFonts(PDFDocument doc, FontInfo fontInfo) { Map usedFonts = fontInfo.getUsedFonts(); - for (String f : usedFonts.keySet()) { - Typeface font = usedFonts.get(f); + for (Map.Entry e : usedFonts.entrySet()) { + String f = e.getKey(); + Typeface font = e.getValue(); //Check if the font actually had any mapping operations. If not, it is an indication //that it has never actually been used and therefore doesn't have to be embedded. -- 2.39.5