diff options
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java')
-rw-r--r-- | reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java b/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java index a3248a09e11a..22cd6ea1511d 100644 --- a/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java +++ b/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java @@ -34,11 +34,11 @@ import org.jfree.report.structure.Element; public class FontFaceDeclsSection extends Element { - private final Map fontFaces; + private final Map<String,FontFaceElement> fontFaces; public FontFaceDeclsSection() { - fontFaces = new HashMap(); + fontFaces = new HashMap<String,FontFaceElement>(); setType("font-face-decls"); setNamespace(OfficeNamespaces.OFFICE_NS); } @@ -50,12 +50,12 @@ public class FontFaceDeclsSection extends Element public FontFaceElement getFontFace(final String name) { - return (FontFaceElement) fontFaces.get(name); + return fontFaces.get(name); } public FontFaceElement[] getAllFontFaces() { - return (FontFaceElement[]) fontFaces.values().toArray(new FontFaceElement[fontFaces.size()]); + return fontFaces.values().toArray(new FontFaceElement[fontFaces.size()]); } public boolean containsFont(final String fontName) |