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

Summary: "Underscores could be used to improve readability" hint should be triggered for numbers greater than 9,999
Product: java Reporter: _ gtzabari <gtzabari>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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 :)