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 - Bitwise operations -> Pointless bitwise expression
Summary: Bitwise operations -> Pointless bitwise expression
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2012-09-15 07:56 UTC by unai
Modified: 2014-01-09 18:07 UTC (History)
1 user (show)

See Also:
Exception Reporter:

Screeshot showing issue (3.17 KB, image/png)
2012-09-15 08:21 UTC, unai

Note You need to log in before you can comment on or make changes to this bug.
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.