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 203398

Summary: Code readabilty improvement after Refactoring
Product: java Reporter: choces <choces>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description choces 2011-10-09 17:50:35 UTC
The new feature coverting and int value to its hexadecimal one, is great, but unfortunately, once the code gets refactored, the original decimal value gets lost, making the code far less readable.

I wonder if it could be possible for the refactoring tools to add a coment line above the refactored one, telling what's got converted.

As an example:

Before refactoring we may have:

int someValue = 90;

After refactoring, we could have:

// someValue converted from it's original value of: 90
int someValue = 0x5a;

I believe code will maintain its readability this way.