-
Notifications
You must be signed in to change notification settings - Fork 44
@Warning
peichhorn edited this page Jul 26, 2012
·
1 revision
Allows user created compile-time warnings.
package test;
import lombok.Warning;
public class WarningExample {
@Warning("See upstream issue #HHH-7476 for details")
public void read() {
}
}
package test;
public class WarningExample {
public void read() {
}
}
creates warning in javac: 8:21 WARNING in method test.WarningExample.read(): "See upstream issue #HHH-7476 for details"
Lombok simply generates a warning.
Nothing to configure yet.
I am not able to run @Action. If I provide Action1 implementation it works.
implementation private static Action1 println() { return new Action1() { public void apply(final Object o) { System.out.println(o); } };
pom : com.github.peichhorn lombok-pg 0.11.3
<dependency>
<groupId>com.github.peichhorn</groupId>
<artifactId>lombok-pg</artifactId>
<version>0.11.3</version>
<classifier>runtime</classifier>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.24</version>
<scope>provided</scope>
</dependency>