Skip to content

Commit

Permalink
Deprecate the JAR Index feature (JDK-8302819)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Solórzano <jorsol@gmail.com>
  • Loading branch information
jorsol authored and slawekjaranowski committed May 1, 2023
1 parent 1d7ff06 commit c84755c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ public class JarArchiver

/**
* The index file name.
*
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
*/
@Deprecated
private static final String INDEX_NAME = "META-INF/INDEX.LIST";

/**
Expand Down Expand Up @@ -120,7 +123,10 @@ public class JarArchiver

/**
* jar index is JDK 1.3+ only
*
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
*/
@Deprecated
private boolean index = false;

/**
Expand All @@ -140,7 +146,10 @@ public class JarArchiver

/**
* Path containing jars that shall be indexed in addition to this archive.
*
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
*/
@Deprecated
private List<String> indexJars;

/**
Expand All @@ -164,7 +173,9 @@ public JarArchiver()
* This may speed up classloading in some cases.
*
* @param flag true to create an index
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
*/
@Deprecated
public void setIndex( boolean flag )
{
index = flag;
Expand Down Expand Up @@ -291,7 +302,9 @@ public void setFilesetmanifest( FilesetManifestConfig config )

/**
* @param indexJar The indexjar
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
*/
@Deprecated
public void addConfiguredIndexJars( File indexJar )
{
if ( indexJars == null )
Expand Down Expand Up @@ -402,7 +415,9 @@ protected void finalizeZipOutputStream( ConcurrentJarCreator zOut )
* @throws IOException thrown if there is an error while creating the
* index and adding it to the zip stream.
* @throws org.codehaus.plexus.archiver.ArchiverException
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
*/
@Deprecated
private void createIndexList( ConcurrentJarCreator zOut )
throws IOException, ArchiverException
{
Expand Down Expand Up @@ -657,7 +672,9 @@ public enum FilesetManifestConfig
* @param dirs The directories
* @param files The files
* @param writer The printwriter ;)
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
*/
@Deprecated
protected final void writeIndexLikeList( List<String> dirs, List<String> files, PrintWriter writer )
{
// JarIndex is sorting the directories by ascending order.
Expand Down

0 comments on commit c84755c

Please sign in to comment.