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 pb...@apache.org on 2004/01/05 03:17:29 UTC

cvs commit: xml-fop/src/java/org/apache/fop/datatypes Numeric.java

pbwest      2004/01/04 18:17:29

  Modified:    src/java/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design
                        Numeric.java
  Log:
  Removed redundant casts.  Javadoc cleanup.
  Flagged by Eclipse.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.2   +6 -6      xml-fop/src/java/org/apache/fop/datatypes/Attic/Numeric.java
  
  Index: Numeric.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/datatypes/Attic/Numeric.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- Numeric.java	5 Jul 2003 19:08:19 -0000	1.1.2.1
  +++ Numeric.java	5 Jan 2004 02:17:29 -0000	1.1.2.2
  @@ -411,7 +411,7 @@
        * 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 @@
        * @param fontSize a <tt>Numeric</tt> containing the reference
        * <i>font-size</i> length
        * @return <i>this</i>, with values changed to reflect the conversion
  -     * @exception <tt>PropertyException</tt>
  +     * @exception PropertyException
        */
       public Numeric expandEms(Numeric fontSize) throws PropertyException {
           if (baseunit == EMS) {
  @@ -513,7 +513,7 @@
       /**
        * @param ref a <tt>Numeric</tt> containing the reference length
        * @return <i>this</i>, with values changed to reflect the conversion
  -     * @exception <tt>PropertyException</tt>
  +     * @exception PropertyException
        */
       public Numeric expandPercent(Numeric ref) throws PropertyException {
           if (baseunit == PERCENTAGE) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org