J2K: transform loops with double, float and char range with while
#KT-899 Fixed
This commit is contained in:
+28
-3
@@ -1,7 +1,32 @@
|
||||
//file
|
||||
class Test {
|
||||
public void printNumbers(int number) {
|
||||
for(int i = 2; i < Math.sqrt(number) + 1; i++)
|
||||
System.out.println(i);
|
||||
public void printNumbers() {
|
||||
for(int i1 = 0; i1 < 1; i1++)
|
||||
System.out.println(i1);
|
||||
|
||||
byte b = 1;
|
||||
for(int i2 = 0; i2 < b; i2++)
|
||||
System.out.println(i2);
|
||||
|
||||
short s = 1;
|
||||
for(int i3 = 0; i3 < s; i3++)
|
||||
System.out.println(i3);
|
||||
|
||||
long l = 1L;
|
||||
for(int i4 = 0; i4 < l; i4++)
|
||||
System.out.println(i4);
|
||||
|
||||
double d = 1.0;
|
||||
for(int i5 = 0; i5 < d; i5++)
|
||||
System.out.println(i5);
|
||||
|
||||
float f = 1.0f;
|
||||
for(int i6 = 0; i6 < f; i6++)
|
||||
System.out.println(i6);
|
||||
|
||||
char c = 1;
|
||||
for(int i7 = 0; i7 < c; i7++)
|
||||
System.out.println(i7);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user