Skip to content

Commit c84755c

Browse files
jorsolslawekjaranowski
authored andcommitted
Deprecate the JAR Index feature (JDK-8302819)
Signed-off-by: Jorge Solórzano <[email protected]>
1 parent 1d7ff06 commit c84755c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ public class JarArchiver
6464

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

7073
/**
@@ -120,7 +123,10 @@ public class JarArchiver
120123

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

126132
/**
@@ -140,7 +146,10 @@ public class JarArchiver
140146

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

146155
/**
@@ -164,7 +173,9 @@ public JarArchiver()
164173
* This may speed up classloading in some cases.
165174
*
166175
* @param flag true to create an index
176+
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
167177
*/
178+
@Deprecated
168179
public void setIndex( boolean flag )
169180
{
170181
index = flag;
@@ -291,7 +302,9 @@ public void setFilesetmanifest( FilesetManifestConfig config )
291302

292303
/**
293304
* @param indexJar The indexjar
305+
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
294306
*/
307+
@Deprecated
295308
public void addConfiguredIndexJars( File indexJar )
296309
{
297310
if ( indexJars == null )
@@ -402,7 +415,9 @@ protected void finalizeZipOutputStream( ConcurrentJarCreator zOut )
402415
* @throws IOException thrown if there is an error while creating the
403416
* index and adding it to the zip stream.
404417
* @throws org.codehaus.plexus.archiver.ArchiverException
418+
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
405419
*/
420+
@Deprecated
406421
private void createIndexList( ConcurrentJarCreator zOut )
407422
throws IOException, ArchiverException
408423
{
@@ -657,7 +672,9 @@ public enum FilesetManifestConfig
657672
* @param dirs The directories
658673
* @param files The files
659674
* @param writer The printwriter ;)
675+
* @deprecated See <a href="https://bugs.openjdk.org/browse/JDK-8302819">JDK-8302819</a>
660676
*/
677+
@Deprecated
661678
protected final void writeIndexLikeList( List<String> dirs, List<String> files, PrintWriter writer )
662679
{
663680
// JarIndex is sorting the directories by ascending order.

0 commit comments

Comments
 (0)