Bug 59652 - [formatter] long constant: convert l to L || convert all "number" letters to uppercase
Summary: [formatter] long constant: convert l to L || convert all "number" letters to ...
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 11:27 EDT by Sebastian Davids CLA
Modified: 2004-09-17 08:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Davids CLA 2004-04-22 11:27:11 EDT
This would be in accordance with:

http://checkstyle.sourceforge.net/config_misc.html#UpperEll

@@@@

Or the option could uppercase all "number" letters -- FloatTypeSuffix,
ExponentIndicator, IntegerTypeSuffix, HexDigit:

float f = 0.0f; => float f = 0.0F; (FloatTypeSuffix)
double d = 0.0d; => double d = 0.0D; (FloatTypeSuffix)
double x = 1.79769313486231570e+308; => 1.79769313486231570E+308 (ExponentIndicator)
long l = 0l => long l = 0L; (IntegerTypeSuffix)
int i = 0xDadaCafe; => int i = 0xDADACAFE; (HexDigit)

@@

The relevant section in the JLS:

http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#48282
Comment 1 Olivier Thomann CLA 2004-04-22 13:28:21 EDT
The code formatter doesn't change the tokens. This would imply to change
lowercase letter to uppercase letters. We don't want the code formatter to go
into this direction.
Comment 2 Philipe Mulet CLA 2004-04-23 08:43:09 EDT
No action planned.
Comment 3 Sebastian Davids CLA 2004-09-17 08:23:39 EDT
Understandable.