mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 16:17:34 +00:00
Added a prettyprinter test case with some exotic java constructs, and fixed a few bugs involving these. Also removed the old pretty printer.
This commit is contained in:
1 parent
dc5e1b9b35
commit
8db1793461
4 files changed
+122
-1761
No files matched your search
@@ -0,0 +1,46 @@
|
||||
import static java.lang.String.*;
|
||||
import java.io.*;
|
||||
class ExoticJava<V> {
|
||||
public <T> ExoticJava(T genericsInConstructor, V genericsInType) {
|
||||
System.out.println(new <String>ExoticJava<Integer>("Hello", 5));
|
||||
}
|
||||
public void test() {
|
||||
int x = 5;
|
||||
int[] y = {10};
|
||||
;
|
||||
class MethodLocal implements Serializable, java.util.RandomAccess {
|
||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||
public final strictfp int foo() {
|
||||
int x = super.hashCode();
|
||||
x <<= 5;
|
||||
do {
|
||||
x <<= 5;
|
||||
} while (Boolean.FALSE);
|
||||
return x;
|
||||
}
|
||||
}
|
||||
for (int i = 10, j[] = {20}; i < 5; i++, j[0]++) {
|
||||
String z = "";
|
||||
try (
|
||||
PrintWriter pw = new PrintWriter(System.out);
|
||||
PrintWriter p2 = new PrintWriter(System.out)) {
|
||||
pw.println();
|
||||
} finally {
|
||||
synchronized (z) {
|
||||
System.out.println(z);
|
||||
}
|
||||
}
|
||||
if ((y == null)) {
|
||||
}
|
||||
if (((y == null))) ;
|
||||
{
|
||||
;
|
||||
}
|
||||
java.util.List<String> list = new java.util.ArrayList<>();
|
||||
assert Boolean.TRUE : "That\'s weird";
|
||||
double d = -1.8E12;
|
||||
long loooong = 305441741;
|
||||
int octal = 87;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user