Community
Participate
Working Groups
"value" is declared as a short ivar in: public int hashCode() { return (int) value; } Which warns: "Unnecessary cast to type int for expression of type short" But here: public String toString() { return String.valueOf((int) value); } I get: "Unnecessary cast to type int for expression of type short. It is already compatible with the argument type int" Shouldn't the messages be the same? If there is a subtle difference it should be better explained. Thanks. Version 3.1.M1
Merged to 2 problems in one as suggested. The extra message was indeed of little value. Fixed
Verified in I20050214