You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ga...@apache.org on 2014/08/31 22:08:48 UTC
svn commit: r1621632 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFResources.java
Author: gadams
Date: Sun Aug 31 20:08:48 2014
New Revision: 1621632
URL: http://svn.apache.org/r1621632
Log:
Fix findbugs warning recently introduced by SS.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFResources.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFResources.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFResources.java?rev=1621632&r1=1621631&r2=1621632&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFResources.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFResources.java Sun Aug 31 20:08:48 2014
@@ -121,8 +121,9 @@ public class PDFResources extends PDFDic
*/
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org