Bug 121820 - Introduce "declare primitive value as..." hint
Introduce "declare primitive value as..." hint
Status: NEW
Product: java
Classification: Unclassified
Component: Hints
6.x
All All
: P3 (vote)
: TBD
Assigned To: Svata Dedic
issues@java
: USABILITY
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo