diff options
author | Glenn Adams <gadams@apache.org> | 2014-08-31 20:08:48 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2014-08-31 20:08:48 +0000 |
commit | e36c12bdd21f7b99c9c86c14fe61379e0b4eed9b (patch) | |
tree | 8617839eb62b52f57879651546a517354b62e6d2 /src/java/org/apache | |
parent | 8addd25537cf52aab45c7da767217f93fa2e7105 (diff) | |
download | xmlgraphics-fop-e36c12bdd21f7b99c9c86c14fe61379e0b4eed9b.tar.gz xmlgraphics-fop-e36c12bdd21f7b99c9c86c14fe61379e0b4eed9b.zip |
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
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFResources.java | 5 |
1 files 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<String, Typeface> usedFonts = fontInfo.getUsedFonts(); - for (String f : usedFonts.keySet()) { - Typeface font = usedFonts.get(f); + for (Map.Entry<String, Typeface> 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. |