Skip to content

Instantly share code, notes, and snippets.

View gimmebytes's full-sized avatar

Marvin Kruse gimmebytes

  • Otto
  • Hamburg, Germany
View GitHub Profile
@esamson
esamson / InYourProcessor.java
Last active May 2, 2022 12:12
Maven and javax.annotation.processing.Messager NOTE messages.
import javax.annotation.processing.SupportedOptions;
@SupportedOptions("debug") // declare the `debug` option
public final class InYourProcessor extends AbstractProcessor {
/**
* This is now your logging routine.
*/
private void log(String msg) {
if (processingEnv.getOptions().containsKey("debug")) {