src/share/classes/java/util/jar/Pack200.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk Cdiff src/share/classes/java/util/jar/Pack200.java

src/share/classes/java/util/jar/Pack200.java

Print this page

        

*** 572,581 **** --- 572,588 ---- /** * Registers a listener for PropertyChange events on the properties map. * This is typically used by applications to update a progress bar. * + * <p> The default implementation of this method does nothing and has + * no side-effects.</p> + * + * <p><b>WARNING:</b> This method is omitted from the interface + * declaration in all subset Profiles of Java SE that do not include + * the {@code java.beans} package. </p> + * @see #properties * @see #PROGRESS * @param listener An object to be invoked when a property is changed. * @deprecated The dependency on {@code PropertyChangeListener} creates * a significant impediment to future modularization of the
*** 584,609 **** * Applications that need to monitor progress of the packer * can poll the value of the {@link #PROGRESS PROGRESS} * property instead. */ @Deprecated ! void addPropertyChangeListener(PropertyChangeListener listener) ; /** * Remove a listener for PropertyChange events, added by * the {@link #addPropertyChangeListener}. * * @see #addPropertyChangeListener * @param listener The PropertyChange listener to be removed. * @deprecated The dependency on {@code PropertyChangeListener} creates * a significant impediment to future modularization of the * Java platform. This method will be removed in a future * release. */ @Deprecated ! void removePropertyChangeListener(PropertyChangeListener listener); ! } /** * The unpacker engine converts the packed stream to a JAR file. * An instance of the engine can be obtained --- 591,624 ---- * Applications that need to monitor progress of the packer * can poll the value of the {@link #PROGRESS PROGRESS} * property instead. */ @Deprecated ! default void addPropertyChangeListener(PropertyChangeListener listener) { ! } /** * Remove a listener for PropertyChange events, added by * the {@link #addPropertyChangeListener}. * + * <p> The default implementation of this method does nothing and has + * no side-effects.</p> + * + * <p><b>WARNING:</b> This method is omitted from the interface + * declaration in all subset Profiles of Java SE that do not include + * the {@code java.beans} package. </p> + * * @see #addPropertyChangeListener * @param listener The PropertyChange listener to be removed. * @deprecated The dependency on {@code PropertyChangeListener} creates * a significant impediment to future modularization of the * Java platform. This method will be removed in a future * release. */ @Deprecated ! default void removePropertyChangeListener(PropertyChangeListener listener) { ! } } /** * The unpacker engine converts the packed stream to a JAR file. * An instance of the engine can be obtained
*** 716,725 **** --- 731,747 ---- /** * Registers a listener for PropertyChange events on the properties map. * This is typically used by applications to update a progress bar. * + * <p> The default implementation of this method does nothing and has + * no side-effects.</p> + * + * <p><b>WARNING:</b> This method is omitted from the interface + * declaration in all subset Profiles of Java SE that do not include + * the {@code java.beans} package. </p> + * * @see #properties * @see #PROGRESS * @param listener An object to be invoked when a property is changed. * @deprecated The dependency on {@code PropertyChangeListener} creates * a significant impediment to future modularization of the
*** 728,752 **** * Applications that need to monitor progress of the * unpacker can poll the value of the {@link #PROGRESS * PROGRESS} property instead. */ @Deprecated ! void addPropertyChangeListener(PropertyChangeListener listener) ; /** * Remove a listener for PropertyChange events, added by * the {@link #addPropertyChangeListener}. * * @see #addPropertyChangeListener * @param listener The PropertyChange listener to be removed. * @deprecated The dependency on {@code PropertyChangeListener} creates * a significant impediment to future modularization of the * Java platform. This method will be removed in a future * release. */ @Deprecated ! void removePropertyChangeListener(PropertyChangeListener listener); } // Private stuff.... private static final String PACK_PROVIDER = "java.util.jar.Pack200.Packer"; --- 750,783 ---- * Applications that need to monitor progress of the * unpacker can poll the value of the {@link #PROGRESS * PROGRESS} property instead. */ @Deprecated ! default void addPropertyChangeListener(PropertyChangeListener listener) { ! } /** * Remove a listener for PropertyChange events, added by * the {@link #addPropertyChangeListener}. * + * <p> The default implementation of this method does nothing and has + * no side-effects.</p> + * + * <p><b>WARNING:</b> This method is omitted from the interface + * declaration in all subset Profiles of Java SE that do not include + * the {@code java.beans} package. </p> + * * @see #addPropertyChangeListener * @param listener The PropertyChange listener to be removed. * @deprecated The dependency on {@code PropertyChangeListener} creates * a significant impediment to future modularization of the * Java platform. This method will be removed in a future * release. */ @Deprecated ! default void removePropertyChangeListener(PropertyChangeListener listener) { ! } } // Private stuff.... private static final String PACK_PROVIDER = "java.util.jar.Pack200.Packer";
src/share/classes/java/util/jar/Pack200.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File