Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/java.desktop/share/classes/java/beans/Beans.java
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
* @see java.beans.VetoableChangeListener
*/

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
* @see java.beans.beancontext.BeanContextSupport
*/

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

/**
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
* @see java.beans.beancontext.BeanContextSupport
*/

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

/**
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
* @see java.beans.beancontext.BeanContextChildSupport
*/

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
* </p>
*/

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
* </p>
*/

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
* services.
*/

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

/**
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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;