Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8321428: Depreciate java.beans.beancontext.* #18413

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/java.desktop/share/classes/java/beans/Beans.java
Expand Up @@ -103,7 +103,8 @@ public static Object instantiate(ClassLoader cls, String beanName) throws IOExce
* @throws IOException if an I/O error occurs.
* @since 1.2
*/
@SuppressWarnings("deprecation")
@Deprecated(since = "23", forRemoval = true)
@SuppressWarnings({"deprecation", "removal"})
public static Object instantiate(ClassLoader cls, String beanName,
BeanContext beanContext)
throws IOException, ClassNotFoundException {
Expand Down Expand Up @@ -352,7 +353,8 @@ public static Object instantiate(ClassLoader cls, String beanName,
return result;
}

@SuppressWarnings("unchecked")
@Deprecated(since = "23", forRemoval = true)
@SuppressWarnings({ "unchecked", "removal" })
private static void unsafeBeanContextAdd(BeanContext beanContext, Object res) {
beanContext.add(res);
}
Expand Down
Expand Up @@ -53,7 +53,8 @@
* @see java.util.Collection
*/

@SuppressWarnings("rawtypes")
@Deprecated(forRemoval=true, since="23")
@SuppressWarnings({"rawtypes", "removal"})
public interface BeanContext extends BeanContextChild, Collection, DesignMode, Visibility {

/**
Expand Down
Expand Up @@ -65,6 +65,8 @@
* @see java.beans.VetoableChangeListener
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextChild {

/**
Expand Down
Expand Up @@ -41,6 +41,8 @@
* @see java.beans.beancontext.BeanContextSupport
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextChildComponentProxy {

/**
Expand Down
Expand Up @@ -54,6 +54,8 @@
* @see java.beans.beancontext.BeanContextChild
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public class BeanContextChildSupport implements BeanContextChild, BeanContextServicesListener, Serializable {

/**
Expand Down
Expand Up @@ -40,6 +40,8 @@
* @see java.beans.beancontext.BeanContextSupport
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextContainerProxy {

/**
Expand Down
Expand Up @@ -46,6 +46,8 @@
* @see java.beans.beancontext.BeanContext
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public abstract class BeanContextEvent extends EventObject {

/**
Expand Down
Expand Up @@ -50,6 +50,9 @@
* @see java.beans.beancontext.BeanContextEvent
* @see java.beans.beancontext.BeanContextMembershipListener
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public class BeanContextMembershipEvent extends BeanContextEvent {

/**
Expand Down
Expand Up @@ -40,6 +40,8 @@
* @see java.beans.beancontext.BeanContext
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextMembershipListener extends EventListener {

/**
Expand Down
Expand Up @@ -72,6 +72,8 @@
* @see java.beans.beancontext.BeanContextChildSupport
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextProxy {

/**
Expand Down
Expand Up @@ -35,6 +35,8 @@
* </p>
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public class BeanContextServiceAvailableEvent extends BeanContextEvent {

/**
Expand Down
Expand Up @@ -49,6 +49,8 @@
* </p>
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextServiceProvider {

/**
Expand Down
Expand Up @@ -35,6 +35,8 @@
* services.
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextServiceProviderBeanInfo extends BeanInfo {

/**
Expand Down
Expand Up @@ -34,6 +34,9 @@
* identify the service being revoked.
* </p>
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public class BeanContextServiceRevokedEvent extends BeanContextEvent {

/**
Expand Down
Expand Up @@ -34,6 +34,9 @@
* interested in processing a {@code BeanContextServiceRevokedEvent}
* implements this interface.
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextServiceRevokedListener extends EventListener {

/**
Expand Down
Expand Up @@ -42,6 +42,9 @@
* to expose generic "services" to the BeanContextChild objects within.
* </p>
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextServices extends BeanContext, BeanContextServicesListener {

/**
Expand Down
Expand Up @@ -35,6 +35,9 @@
* A class that is interested in processing a
* {@code BeanContextServiceAvailableEvent} implements this interface.
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public interface BeanContextServicesListener extends BeanContextServiceRevokedListener {

/**
Expand Down
Expand Up @@ -54,6 +54,9 @@
* @author Laurence P. G. Cable
* @since 1.2
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public class BeanContextServicesSupport extends BeanContextSupport
implements BeanContextServices {

Expand Down
Expand Up @@ -59,6 +59,9 @@
* @author Laurence P. G. Cable
* @since 1.2
*/

@SuppressWarnings("removal")
@Deprecated(forRemoval=true, since="23")
public class BeanContextSupport extends BeanContextChildSupport
implements BeanContext,
Serializable,
Expand Down
Expand Up @@ -33,4 +33,5 @@
*
* @since 1.2
*/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?? Were you intending to add something here ? If not revert the blank line.

package java.beans.beancontext;