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.

Bug 218407

Summary: Bitwise operations -> Pointless bitwise expression
Product: java Reporter: unai
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: unai
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Screeshot showing issue

Description unai 2012-09-15 07:56:03 UTC
When editing a Java file, this hint warns about n<<0 being a pointless bitwise expression, but doesn't about 0<<n, which is equally pointless.
Comment 1 unai 2012-09-15 08:21:36 UTC
Created attachment 124398 [details]
Screeshot showing issue
Comment 2 unai 2013-08-22 14:26:48 UTC
(I accidentally created the bug as P4 instead of default's P3)
Comment 3 unai 2014-01-09 18:07:28 UTC
...and also 0>>n and 0>>>n, for the sake of completeness.