You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/07/28 01:10:09 UTC
DO NOT REPLY [Bug 22717] -
[lang] mutable numbers
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=22717>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=22717
[lang] mutable numbers
------- Additional Comments From ggregory@seagullsw.com 2004-07-27 23:10 -------
Each mutable number does not need the type case in the return expression:
public double doubleValue() {
return (double) value;
}
This is simpler (and clearer IMO):
public double doubleValue() {
return value;
}
My preference is to also use "this." for ivar access:
public double doubleValue() {
return this.value;
}
2c,
Gary
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org