From 1bfdb234c00c8f84e69bfabc4f27f075a23e5adb Mon Sep 17 00:00:00 2001 From: Sebastien Vermeille Date: Tue, 27 Aug 2024 07:58:38 +0200 Subject: [PATCH] Remove onConstructor annotation in lombok (fails javadoc generation) (#26) As it's not really important --- .../processor/RegisterCaseStyleAnnotationProcessor.java | 9 ++------- .../annotation/processor/TemplateRenderer.java | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/stylesniffer-annotation-processor/src/main/java/dev/cookiecode/stylesniffer/annotation/processor/RegisterCaseStyleAnnotationProcessor.java b/stylesniffer-annotation-processor/src/main/java/dev/cookiecode/stylesniffer/annotation/processor/RegisterCaseStyleAnnotationProcessor.java index cca3453..0f232fc 100644 --- a/stylesniffer-annotation-processor/src/main/java/dev/cookiecode/stylesniffer/annotation/processor/RegisterCaseStyleAnnotationProcessor.java +++ b/stylesniffer-annotation-processor/src/main/java/dev/cookiecode/stylesniffer/annotation/processor/RegisterCaseStyleAnnotationProcessor.java @@ -24,7 +24,6 @@ import static lombok.AccessLevel.*; -import com.google.common.annotations.VisibleForTesting; import java.io.IOException; import java.util.Set; import javax.annotation.processing.*; @@ -47,12 +46,8 @@ * @see dev.cookiecode.stylesniffer.api.CaseStyle */ @NoArgsConstructor(access = PUBLIC) -@AllArgsConstructor( - access = PACKAGE, - onConstructor_ = {@VisibleForTesting}) -@Getter( - value = PACKAGE, - onMethod_ = {@VisibleForTesting}) +@AllArgsConstructor(access = PACKAGE) +@Getter(value = PACKAGE) @SupportedAnnotationTypes("dev.cookiecode.stylesniffer.annotation.RegisterCaseStyle") @SupportedSourceVersion(SourceVersion.RELEASE_21) @Flogger diff --git a/stylesniffer-annotation-processor/src/main/java/dev/cookiecode/stylesniffer/annotation/processor/TemplateRenderer.java b/stylesniffer-annotation-processor/src/main/java/dev/cookiecode/stylesniffer/annotation/processor/TemplateRenderer.java index 40bae69..df83709 100644 --- a/stylesniffer-annotation-processor/src/main/java/dev/cookiecode/stylesniffer/annotation/processor/TemplateRenderer.java +++ b/stylesniffer-annotation-processor/src/main/java/dev/cookiecode/stylesniffer/annotation/processor/TemplateRenderer.java @@ -49,7 +49,7 @@ * @author Sebastien Vermeille * @see org.thymeleaf.context.Context */ -@RequiredArgsConstructor(onConstructor_ = {@VisibleForTesting}) +@RequiredArgsConstructor() public class TemplateRenderer { static final String TEMPLATE_FILE_NAME = "case_style_injector";