From: Peter Bernard West Date: Wed, 10 Mar 2004 12:36:53 +0000 (+0000) Subject: Cosmetic changes to keep Eclipse happy X-Git-Tag: Defoe_export~255 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15df77d1d046ec5f71e2846cd1d129fb00fa3a82;p=xmlgraphics-fop.git Cosmetic changes to keep Eclipse happy git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197442 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fonts/Font.java b/src/java/org/apache/fop/fonts/Font.java index 9cce65d74..19c4165dd 100644 --- a/src/java/org/apache/fop/fonts/Font.java +++ b/src/java/org/apache/fop/fonts/Font.java @@ -182,7 +182,6 @@ public class Font { * This also performs some guessing on widths on various * versions of space that might not exists in the font. * @param c character to inspect - * @param fs FontState to use * @return the width of the character */ public int getCharWidth(char c) { diff --git a/src/java/org/apache/fop/fonts/FontUtil.java b/src/java/org/apache/fop/fonts/FontUtil.java index 999836d8f..f35d947ca 100644 --- a/src/java/org/apache/fop/fonts/FontUtil.java +++ b/src/java/org/apache/fop/fonts/FontUtil.java @@ -35,7 +35,7 @@ public class FontUtil { int weight = 400; try { weight = Integer.parseInt(text); - weight = ((int)weight / 100) * 100; + weight = (weight / 100) * 100; weight = Math.max(weight, 100); weight = Math.min(weight, 900); } catch (NumberFormatException nfe) { diff --git a/src/java/org/apache/fop/fonts/MultiByteFont.java b/src/java/org/apache/fop/fonts/MultiByteFont.java index 62f5be961..9baf9eb3d 100644 --- a/src/java/org/apache/fop/fonts/MultiByteFont.java +++ b/src/java/org/apache/fop/fonts/MultiByteFont.java @@ -200,7 +200,7 @@ public class MultiByteFont extends CIDFont { * @see org.apache.fop.fonts.Font#mapChar(char) */ public char mapChar(char c) { - int idx = (int)c; + int idx = c; int retIdx = 0; for (int i = 0; (i < bfentries.length) && retIdx == 0; i++) {