From 90b469d988b7cd5755b163c77f2e22cbd61fe146 Mon Sep 17 00:00:00 2001 From: Andreas Hufler Date: Thu, 30 Apr 2026 16:30:42 +0200 Subject: [PATCH] add archunit override annotation --- .../toolbox/archunit/ArchAllowDirectAccess.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/java/it/aboutbits/springboot/toolbox/archunit/ArchAllowDirectAccess.java diff --git a/src/main/java/it/aboutbits/springboot/toolbox/archunit/ArchAllowDirectAccess.java b/src/main/java/it/aboutbits/springboot/toolbox/archunit/ArchAllowDirectAccess.java new file mode 100644 index 0000000..e7ec390 --- /dev/null +++ b/src/main/java/it/aboutbits/springboot/toolbox/archunit/ArchAllowDirectAccess.java @@ -0,0 +1,14 @@ +package it.aboutbits.springboot.toolbox.archunit; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.TYPE, ElementType.FIELD, ElementType.RECORD_COMPONENT}) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface ArchAllowDirectAccess { + String reason(); +}