diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypePattern.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypePattern.java
index 3b6a9e29d32..28fd3825ea9 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypePattern.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypePattern.java
@@ -187,10 +187,10 @@ final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, bool
*
* @exception UnsupportedOperationException if this operation is used other than JLS19
* @exception UnsupportedOperationException if this expression is used with previewEnabled flag as false
- * @Deprecated(forRemoval = true, since="2024-07")
- * In the JLS22 API, this method is replaced by setPatternVariable(VariableDeclaration patternVariable)
+ * @deprecated In the JLS22 API, this method is replaced by setPatternVariable(VariableDeclaration patternVariable)
* @since 3.38
*/
+ @Deprecated(forRemoval = true, since="2025-03")
public void setPatternVariable(SingleVariableDeclaration patternVariable) {
internalSetPatternVariable(patternVariable);
}