Merge pull request #28677 from polarbear567

* gh-28677:
  Fix @deprecated and @see in Archive's javadoc

Closes gh-28677
This commit is contained in:
Andy Wilkinson 2021-11-15 12:07:49 +00:00
commit 2e5f80edaa

View File

@ -86,9 +86,9 @@ public interface Archive extends Iterable<Archive.Entry>, AutoCloseable {
/** /**
* Return a new iterator for the archive entries. * Return a new iterator for the archive entries.
* @deprecated since 2.3.0 for removal in 2.5.0 in favor of using * @deprecated since 2.3.0 for removal in 2.5.0 in favor of using
* @see java.lang.Iterable#iterator()
* {@link org.springframework.boot.loader.jar.JarFile} to access entries and * {@link org.springframework.boot.loader.jar.JarFile} to access entries and
* {@link #getNestedArchives(EntryFilter, EntryFilter)} for accessing nested archives. * {@link #getNestedArchives(EntryFilter, EntryFilter)} for accessing nested archives.
* @see java.lang.Iterable#iterator()
*/ */
@Deprecated @Deprecated
@Override @Override
@ -98,9 +98,9 @@ public interface Archive extends Iterable<Archive.Entry>, AutoCloseable {
* Performs the given action for each element of the {@code Iterable} until all * Performs the given action for each element of the {@code Iterable} until all
* elements have been processed or the action throws an exception. * elements have been processed or the action throws an exception.
* @deprecated since 2.3.0 for removal in 2.5.0 in favor of using * @deprecated since 2.3.0 for removal in 2.5.0 in favor of using
* @see Iterable#forEach {@link org.springframework.boot.loader.jar.JarFile} to access * {@link org.springframework.boot.loader.jar.JarFile} to access entries and
* entries and {@link #getNestedArchives(EntryFilter, EntryFilter)} for accessing * {@link #getNestedArchives(EntryFilter, EntryFilter)} for accessing nested archives.
* nested archives. * @see Iterable#forEach
*/ */
@Deprecated @Deprecated
@Override @Override
@ -114,9 +114,9 @@ public interface Archive extends Iterable<Archive.Entry>, AutoCloseable {
/** /**
* Creates a {@link Spliterator} over the elements described by this {@code Iterable}. * Creates a {@link Spliterator} over the elements described by this {@code Iterable}.
* @deprecated since 2.3.0 for removal in 2.5.0 in favor of using * @deprecated since 2.3.0 for removal in 2.5.0 in favor of using
* @see Iterable#spliterator {@link org.springframework.boot.loader.jar.JarFile} to * {@link org.springframework.boot.loader.jar.JarFile} to access entries and
* access entries and {@link #getNestedArchives(EntryFilter, EntryFilter)} for * {@link #getNestedArchives(EntryFilter, EntryFilter)} for accessing nested archives.
* accessing nested archives. * @see Iterable#spliterator
*/ */
@Deprecated @Deprecated
@Override @Override