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

Summary: Introduce "declare primitive value as..." hint
Product: java Reporter: Anton Chechel <manowar>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker Keywords: USABILITY
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.