mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-13 22:19:08 +00:00
Javac parser handles ";" (empty statements) as empty blocks with an invalid position. Thats why delomok replaces ";" with "{}". This gets an issue when you use this in an interface, since interfaces are not allowed to have initializer blocks.
16 lines
198 B
Java
16 lines
198 B
Java
@SuppressWarnings("all")
|
|
interface Interfaces {
|
|
enum Ranks {
|
|
CLUBS,
|
|
HEARTS,
|
|
DIAMONDS,
|
|
SPADES;
|
|
}
|
|
;
|
|
;
|
|
int x = 10;
|
|
void y();
|
|
public static final int a = 20;
|
|
public abstract void b();
|
|
}
|