This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Example code: int intValue(byte[] a) { return (0xff & a[0]) + (0xff & a[1]) << 8; } The part "0xff & a[0]" is underlined in Netbeans 6.9 editor as "Pointless bitwise expression". Clicking on the hint bulb shows: "Zero constant should be removed" After accepting the hint, the code shows: int intValue(byte[] a) { return (0xff) + (0xff & a[1]) << 8; } This is wrong!
Has been fixed as bug #185010, should be part of NB6.9.1. Thanks for the report. *** This bug has been marked as a duplicate of bug 185010 ***