mirror of
https://github.com/tiennm99/lombok.git
synced 2026-06-01 00:28:38 +00:00
850c3eaf07
And as expected the tests shows that @Synchronized and @SneakyThrows are currently broken for eclipse but not for ecj.
33 lines
645 B
Java
33 lines
645 B
Java
class CleanupName {
|
|
CleanupName() {
|
|
super();
|
|
}
|
|
void test() {
|
|
@lombok.Cleanup("toString") Object o = "Hello World!";
|
|
try
|
|
{
|
|
System.out.println(o);
|
|
}
|
|
finally
|
|
{
|
|
if ((java.util.Collections.singletonList(o).get(0) != null))
|
|
{
|
|
o.toString();
|
|
}
|
|
}
|
|
}
|
|
void test2() {
|
|
@lombok.Cleanup(value = "toString") Object o = "Hello World too!";
|
|
try
|
|
{
|
|
System.out.println(o);
|
|
}
|
|
finally
|
|
{
|
|
if ((java.util.Collections.singletonList(o).get(0) != null))
|
|
{
|
|
o.toString();
|
|
}
|
|
}
|
|
}
|
|
} |