From 64ed1c5c4f6da514c58391a88a0146bea600e42e Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Mon, 5 Jan 2004 02:17:29 +0000 Subject: [PATCH] Removed redundant casts. Javadoc cleanup. Flagged by Eclipse. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197121 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/datatypes/Numeric.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/fop/datatypes/Numeric.java b/src/java/org/apache/fop/datatypes/Numeric.java index 151da013c..8ccf0a06a 100644 --- a/src/java/org/apache/fop/datatypes/Numeric.java +++ b/src/java/org/apache/fop/datatypes/Numeric.java @@ -411,7 +411,7 @@ public class Numeric extends AbstractPropertyValue implements Cloneable { * rounded value is equal to the value. */ public boolean isInteger() { - return (isNumber() && (double)(Math.round(value)) == value); + return (isNumber() && (Math.round(value)) == value); } /** @@ -494,7 +494,7 @@ public class Numeric extends AbstractPropertyValue implements Cloneable { * @param fontSize a Numeric containing the reference * font-size length * @return this, with values changed to reflect the conversion - * @exception PropertyException + * @exception PropertyException */ public Numeric expandEms(Numeric fontSize) throws PropertyException { if (baseunit == EMS) { @@ -513,7 +513,7 @@ public class Numeric extends AbstractPropertyValue implements Cloneable { /** * @param ref a Numeric containing the reference length * @return this, with values changed to reflect the conversion - * @exception PropertyException + * @exception PropertyException */ public Numeric expandPercent(Numeric ref) throws PropertyException { if (baseunit == PERCENTAGE) { -- 2.39.5