Polishing deprecated methods

Added since and forRemoval to Deprecated methods.
This commit is contained in:
Arjen Poutsma
2022-11-16 09:57:14 +01:00
parent 37b439182e
commit 9be6cea012
7 changed files with 25 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2022 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.
@@ -55,7 +55,7 @@ import org.springframework.util.StringUtils;
* @see CronTrigger
* @deprecated as of 5.3, in favor of {@link CronExpression}
*/
@Deprecated
@Deprecated(since = "5.3", forRemoval = true)
public class CronSequenceGenerator {
private final String expression;
@@ -84,7 +84,7 @@ public class CronSequenceGenerator {
* @see java.util.TimeZone#getDefault()
* @deprecated as of 5.3, in favor of {@link CronExpression#parse(String)}
*/
@Deprecated
@Deprecated(since = "5.3", forRemoval = true)
public CronSequenceGenerator(String expression) {
this(expression, TimeZone.getDefault());
}