Skip to content

Commit 05c3f56

Browse files
committed
Rely on default retention in @Contract
Closes gh-35027
1 parent dee80ab commit 05c3f56

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spring-core/src/main/java/org/springframework/lang/Contract.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,8 +18,6 @@
1818

1919
import java.lang.annotation.Documented;
2020
import java.lang.annotation.ElementType;
21-
import java.lang.annotation.Retention;
22-
import java.lang.annotation.RetentionPolicy;
2321
import java.lang.annotation.Target;
2422

2523
/**
@@ -77,7 +75,6 @@
7775
* NullAway custom contract annotations</a>
7876
*/
7977
@Documented
80-
@Retention(RetentionPolicy.CLASS)
8178
@Target(ElementType.METHOD)
8279
public @interface Contract {
8380

0 commit comments

Comments
 (0)