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 - Code readabilty improvement after Refactoring
Summary: Code readabilty improvement after Refactoring
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-09 17:50 UTC by choces
Modified: 2013-09-02 14:21 UTC (History)
0 users

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 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.