From 05c3f56ec7e0c9c7ad27b87341fd48e5ac310b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Wed, 11 Jun 2025 10:10:57 +0200 Subject: [PATCH] Rely on default retention in `@Contract` Closes gh-35027 --- .../src/main/java/org/springframework/lang/Contract.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/lang/Contract.java b/spring-core/src/main/java/org/springframework/lang/Contract.java index 143e3b4c4c..eb6321ad85 100644 --- a/spring-core/src/main/java/org/springframework/lang/Contract.java +++ b/spring-core/src/main/java/org/springframework/lang/Contract.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2024 the original author or authors. + * Copyright 2002-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ package org.springframework.lang; 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; /** @@ -77,7 +75,6 @@ import java.lang.annotation.Target; * NullAway custom contract annotations */ @Documented -@Retention(RetentionPolicy.CLASS) @Target(ElementType.METHOD) public @interface Contract {