Skip to content

Commit 0e6318a

Browse files
authored
Add @deprecated to ManagedBean (#105)
* Add @deprecated to ManagedBean Signed-off-by: Scott M Stark <[email protected]>
1 parent 58d2c96 commit 0e6318a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/src/main/java/jakarta/annotation/ManagedBean.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2009, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,9 +26,11 @@
2626
* such as resource injection, lifecycle callbacks and interceptors.
2727
*
2828
* @since Common Annotations 1.1
29+
* @deprecated This will be removed post Jakarta EE 10 and should be replaced with CDI beans
2930
*/
3031
@Target(TYPE)
3132
@Retention(RUNTIME)
33+
@Deprecated(/*since = "2.1.1", forRemoval = true*/)
3234
public @interface ManagedBean {
3335
/**
3436
* The name of the Jakarta Managed Bean. Jakarta Managed Bean names must be unique within a

0 commit comments

Comments
 (0)