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 121820 - Introduce "declare primitive value as..." hint
Summary: Introduce "declare primitive value as..." hint
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2007-11-13 14:44 UTC by Anton Chechel
Modified: 2013-09-02 14:19 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 Anton Chechel 2007-11-13 14:44:51 UTC
At the moment with code

    private float f = .5;

editor provides 2 hints:
1. Cast .5 to float
2. Change type of f to double

New hint "Declare .5 as .5f" or something like that should be introduced. Moreover I think this is the most frequently
used case for developer so it should be placed at the top of provided hints.