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 227046 - Unnecessary weird assignment hint
Summary: Unnecessary weird assignment hint
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-05 14:37 UTC by maxceem
Modified: 2015-06-01 14:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maxceem 2013-03-05 14:37:11 UTC
Here is an example code where all the lines are marked with the hint "Weired assignment";

// just to avoid showing other issues
var obj, something, length;

// minimal reasonable cases
length = something * something;
length = obj.something * obj.something;

// minimal cases
something * something;
obj.something * obj.something;

// other cases
if ( length > something * something ) {};
if ( length > obj.something * obj.something ) {};

So this hint marks all the lines containing code like:
something [+|-|*|/] something

So it seems to be unnecessary in such cases.
Comment 1 Roman Svitanic 2015-06-01 14:03:57 UTC
Not reproducible anymore.

Product Version: NetBeans IDE Dev (Build 20150601-b403da652e07)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Mac OS X version 10.10.3 running on x86_64; UTF-8; en_US (nb)