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 222794 - "Underscores could be used to improve readability" hint should be triggered for numbers greater than 9,999
Summary: "Underscores could be used to improve readability" hint should be triggered f...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-27 00:13 UTC by _ gtzabari
Modified: 2013-09-02 14:19 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2012-11-27 00:13:07 UTC
I am getting the "Underscores could be used to improve readability" hint for numbers smaller than 10,000. I argue the readability actually gets worse for such numbers. Compare:

httpConnector.setPort(8080);
vs
httpConnector.setPort(8_080);

and

httpConnector.setPort(80080);
vs
httpConnector.setPort(80_080);

In the former case it's fairly trivial to separate the digits. In the latter case the underscore helps. I know this is subjective but hopefully you agree :)