Severity Description Resource In Folder Location Creation Time

Unnecessary cast to type int for expression of type int	Fraction.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/math	line 391	July 25, 2003 5:56:34 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137504 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2003-07-26 00:57:02 +00:00
parent da00e1d426
commit f133c130bc
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ import java.io.Serializable;
* @author Travis Reeder
* @author Stephen Colebourne
* @since 2.0
* @version $Id: Fraction.java,v 1.4 2003/07/14 22:25:05 bayard Exp $
* @version $Id: Fraction.java,v 1.5 2003/07/26 00:57:02 ggregory Exp $
*/
public final class Fraction extends Number implements Serializable, Comparable {
@ -388,7 +388,7 @@ public final class Fraction extends Number implements Serializable, Comparable {
* @return the whole number fraction part
*/
public int intValue() {
return (int) numerator / denominator;
return numerator / denominator;
}
/**