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

        

*** 22,31 **** --- 22,32 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package java.util.jar; + import java.util.Objects; import java.util.SortedMap; import java.io.InputStream; import java.io.OutputStream; import java.io.File; import java.io.IOException;
*** 572,581 **** --- 573,586 ---- /** * Registers a listener for PropertyChange events on the properties map. * This is typically used by applications to update a progress bar. * + * <p><b>WARNING:</b> This method is not a declared method of this interface + * in a subset Profile of Java SE. In other words, this method does not exist + * on runtimes that only implement a profile of Java SE.</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 --- 589,621 ---- * 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) { ! Objects.requireNonNull(listener); ! } /** * Remove a listener for PropertyChange events, added by * the {@link #addPropertyChangeListener}. * + * <p><b>WARNING:</b> This method is not a declared method of this interface + * in a subset Profile of Java SE. In other words, this method does not exist + * on runtimes that only implement a profile of Java SE.</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) { ! Objects.requireNonNull(listener); ! } } /** * The unpacker engine converts the packed stream to a JAR file. * An instance of the engine can be obtained
*** 716,725 **** --- 728,741 ---- /** * Registers a listener for PropertyChange events on the properties map. * This is typically used by applications to update a progress bar. * + * <p><b>WARNING:</b> This method is not a declared method of this interface + * in a subset Profile of Java SE. In other words, this method does not exist + * on runtimes that only implement a profile of Java SE.</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"; --- 744,776 ---- * 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) { ! Objects.requireNonNull(listener); ! } /** * Remove a listener for PropertyChange events, added by * the {@link #addPropertyChangeListener}. * + * <p><b>WARNING:</b> This method is not a declared method of this interface + * in a subset Profile of Java SE. In other words, this method does not exist + * on runtimes that only implement a profile of Java SE.</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) { ! Objects.requireNonNull(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