Skip to content
peichhorn edited this page Jul 26, 2012 · 1 revision

@Warning

Overview

Allows user created compile-time warnings.

Example

With Lombok

package test;

import lombok.Warning;

public class WarningExample {

	@Warning("See upstream issue #HHH-7476 for details")
	public void read() {
	}
}

Vanilla Java

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"

Behind the Scenes

Lombok simply generates a warning.

Configuration

Nothing to configure yet.


Clone this wiki locally