AutoRefactor icon indicating copy to clipboard operation
AutoRefactor copied to clipboard

New refactoring - remove unnecessary primitive type suffix in literals

Open JnRouvignac opened this issue 12 years ago • 0 comments

Given

The following code:

long l1 = 0l;
long l2 = 0L;
double d1 = 0.0d;
double d2 = 0.0D;

if (l1 == 0L) ...
if (d1 == 0D) ...

When

...applying automatic refactoring...

Then

code should be rewritten to:

long l1 = 0;
long l2 = 0;
double d1 = 0.0;
double d2 = 0.0;

if (l1 == 0) ...
if (d1 == 0) ...

JnRouvignac avatar Sep 02 '13 09:09 JnRouvignac