From bb1111ff6f948f8e1776e27800a25e5beeb8d3c2 Mon Sep 17 00:00:00 2001 From: James Catto Date: Tue, 6 May 2025 12:57:17 +0100 Subject: [PATCH] TG-23029 - moved ManagedByDiffblue to be an annotation --- .../cover/annotations/ManagedByDiffblue.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/diffblue/cover/annotations/ManagedByDiffblue.java b/src/main/java/com/diffblue/cover/annotations/ManagedByDiffblue.java index 5887dc9..57a0c9b 100644 --- a/src/main/java/com/diffblue/cover/annotations/ManagedByDiffblue.java +++ b/src/main/java/com/diffblue/cover/annotations/ManagedByDiffblue.java @@ -14,8 +14,16 @@ */ package com.diffblue.cover.annotations; +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.RetentionPolicy.SOURCE; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + /** - * Empty interface, identifies a test as managed by Diffblue. Tests annotated with this can be - * removed or updated by Diffblue and so should not be adjusted manually. + * Annotation to identify a test as managed by Diffblue. Tests annotated with this can be removed or + * updated by Diffblue and so should not be adjusted manually. */ -public interface ManagedByDiffblue {} +@Retention(SOURCE) +@Target(METHOD) +public @interface ManagedByDiffblue {}