From: Adrian Cumiskey Date: Wed, 5 Dec 2007 17:42:48 +0000 (+0000) Subject: Checkstyle fixes X-Git-Tag: fop-0_95beta~231 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57904a9cc5d8e74d9b4a800ae6f149afe7a995b1;p=xmlgraphics-fop.git Checkstyle fixes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@601443 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/afp/AFPFontAttributes.java b/src/java/org/apache/fop/render/afp/AFPFontAttributes.java index 9a4c0599f..fb6f82463 100644 --- a/src/java/org/apache/fop/render/afp/AFPFontAttributes.java +++ b/src/java/org/apache/fop/render/afp/AFPFontAttributes.java @@ -20,10 +20,9 @@ package org.apache.fop.render.afp; import org.apache.fop.render.afp.fonts.AFPFont; -import org.apache.fop.render.afp.tools.BinaryUtils; /** - * This class encapsulates the font atributes that need to be included + * This class encapsulates the font attributes that need to be included * in the AFP data stream. This class does not assist in converting the * font attributes to AFP code pages and character set values. * @@ -31,24 +30,24 @@ import org.apache.fop.render.afp.tools.BinaryUtils; public class AFPFontAttributes { /** - * The font reference byte + * The font reference */ - private byte _fontReference; + private int fontReference; /** * The font key */ - private String _fontKey; + private String fontKey; /** * The font */ - private AFPFont _font; + private AFPFont font; /** * The point size */ - private int _pointSize; + private int pointSize; /** * Constructor for the AFPFontAttributes @@ -56,45 +55,38 @@ public class AFPFontAttributes { * @param font the font * @param pointSize the point size */ - public AFPFontAttributes( - - String fontKey, - AFPFont font, - int pointSize) { - - _fontKey = fontKey; - _font = font; - _pointSize = pointSize; - + public AFPFontAttributes(String fontKey, AFPFont font, int pointSize) { + this.fontKey = fontKey; + this.font = font; + this.pointSize = pointSize; } + /** * @return the font */ public AFPFont getFont() { - return _font; + return font; } /** * @return the FontKey attribute */ public String getFontKey() { - - return _fontKey + _pointSize; - + return fontKey + pointSize; } /** * @return the point size attribute */ public int getPointSize() { - return _pointSize; + return pointSize; } /** * @return the FontReference attribute */ - public byte getFontReference() { - return _fontReference; + public int getFontReference() { + return fontReference; } /** @@ -102,10 +94,7 @@ public class AFPFontAttributes { * @param fontReference the FontReference to set */ public void setFontReference(int fontReference) { - - String id = String.valueOf(fontReference); - _fontReference = BinaryUtils.convert(id)[0]; - + this.fontReference = fontReference; } }