mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Cleanup (formatting)
This commit is contained in:
+12
-40
@@ -1,9 +1,6 @@
|
||||
// duplicate labels
|
||||
import java.io.*;
|
||||
|
||||
|
||||
public class a {
|
||||
|
||||
class DuplicateSwitchLabels {
|
||||
final int FI = 4;
|
||||
|
||||
void f(final int i) {
|
||||
@@ -24,43 +21,18 @@ public class a {
|
||||
case FI - 8: break;
|
||||
}
|
||||
|
||||
final byte b = 127;
|
||||
|
||||
switch(i) {
|
||||
case <error descr="Duplicate label '127'">b</error>:
|
||||
System.out.println("b=" + b + ";");
|
||||
case <error descr="Duplicate label '127'">127</error>:
|
||||
System.out.println("MySwitch.MySwitch");
|
||||
}
|
||||
|
||||
|
||||
// internalize strings
|
||||
switch (0) {
|
||||
case 0:
|
||||
case "\410" == "!0" ? 1 : 0:
|
||||
case ""==""+"" ? 3 : 0:
|
||||
final byte b = 127;
|
||||
switch (i) {
|
||||
case <error descr="Duplicate label '127'">b</error>:
|
||||
System.out.println("b=" + b + ";");
|
||||
case <error descr="Duplicate label '127'">127</error>:
|
||||
System.out.println("MySwitch.MySwitch");
|
||||
}
|
||||
|
||||
switch (0) {
|
||||
case 0:
|
||||
//case 1./0 == Double.POSITIVE_INFINITY ? 1 : 0:
|
||||
|
||||
//case 1./0 == Float.POSITIVE_INFINITY ? 2 : 0:
|
||||
|
||||
// commented out ref
|
||||
// does not work when running under JRE
|
||||
//case -1./0 == Double.NEGATIVE_INFINITY ? 3 : 0:
|
||||
//case -1./0 == Float.NEGATIVE_INFINITY ? 4 : 0:
|
||||
//case Double.POSITIVE_INFINITY == Float.POSITIVE_INFINITY ? 5 : 0:
|
||||
//case Double.NEGATIVE_INFINITY == Float.NEGATIVE_INFINITY ? 6 : 0:
|
||||
//case Double.NaN != Float.NaN ? 7 : 0:
|
||||
//case Integer.MIN_VALUE == -2.147483648e9 ? 8 : 0:
|
||||
//case Integer.MIN_VALUE == -2.14748365e9f ? 9 : 0:
|
||||
//case Long.MIN_VALUE == -9.223372036854776e18 ? 10 : 0:
|
||||
//case Long.MIN_VALUE == -9.223372e18f ? 11 : 0:
|
||||
|
||||
|
||||
|
||||
}
|
||||
switch (0) {
|
||||
case 0:
|
||||
case "\410" == "!0" ? 1 : 0:
|
||||
case ""==""+"" ? 3 : 0:
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user