Skip to content

Commit 09947da

Browse files
committed
Make deprecation warning check BOTH values
1 parent 1a14710 commit 09947da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/laytonsmith/PureUtilities/Common/Annotations/AggressiveDeprecationTransformer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public MethodVisitor visitMethod(int access, final String name, String methodDes
9999
LocalDate deprecationDate =
100100
LocalDate.parse((String) aggressiveDeprecation.getValue("deprecationDate"), FORMATTER);
101101

102-
if(MSVersion.LATEST.gte(removalVersion) || LocalDate.now()
102+
if(MSVersion.LATEST.gte(removalVersion) && LocalDate.now()
103103
.isAfter(deprecationDate.plusYears(1))) {
104104
System.err.println(TermColors.YELLOW + mirror.getDeclaringClass() + "." + mirror.getName() + "(" + mirror.getParams()
105105
+ ") is slated for removal now, consider removing it from the codebase or updating"

0 commit comments

Comments
 (0)