Skip to content

Commit 7360f37

Browse files
committed
Javadoc: The @deprecated tag should be last.
1 parent e14b795 commit 7360f37

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,10 @@ public long getGID() {
521521
/**
522522
* Gets the number of bytes needed to pad the header to the alignment boundary.
523523
*
524-
* @deprecated This method doesn't properly work for multi-byte encodings. And creates corrupt archives. Use {@link #getHeaderPadCount(Charset)} or
525-
* {@link #getHeaderPadCount(long)} in any case.
526524
* @return the number of bytes needed to pad the header (0,1,2,3).
527525
* @throws ArchiveException if a computation overflows an {@code int}.
526+
* @deprecated This method doesn't properly work for multi-byte encodings. And creates corrupt archives. Use {@link #getHeaderPadCount(Charset)} or
527+
* {@link #getHeaderPadCount(long)} in any case.
528528
*/
529529
@Deprecated
530530
public int getHeaderPadCount() throws ArchiveException {

src/main/java/org/apache/commons/compress/archivers/jar/JarArchiveEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public Certificate[] getCertificates() {
9292
/**
9393
* This method is not implemented and won't ever be. The JVM equivalent has a different name {@link java.util.jar.JarEntry#getAttributes()}
9494
*
95-
* @deprecated Since 1.5, do not use; always returns null
9695
* @return Always returns null.
96+
* @deprecated Since 1.5, do not use; always returns null
9797
*/
9898
@Deprecated
9999
public Attributes getManifestAttributes() {

src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZArchiveEntry.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public class SevenZArchiveEntry implements ArchiveEntry {
4444
*
4545
* @param date the Java time.
4646
* @return the NTFS time.
47-
* @deprecated Use {@link FileTimes#toNtfsTime(Date)} instead.
4847
* @see FileTimes#toNtfsTime(Date)
48+
* @deprecated Use {@link FileTimes#toNtfsTime(Date)} instead.
4949
*/
5050
@Deprecated
5151
public static long javaTimeToNtfsTime(final Date date) {
@@ -57,8 +57,8 @@ public static long javaTimeToNtfsTime(final Date date) {
5757
*
5858
* @param ntfsTime the NTFS time in 100 nanosecond units.
5959
* @return the Java time.
60-
* @deprecated Use {@link FileTimes#ntfsTimeToDate(long)} instead.
6160
* @see FileTimes#ntfsTimeToDate(long)
61+
* @deprecated Use {@link FileTimes#ntfsTimeToDate(long)} instead.
6262
*/
6363
@Deprecated
6464
public static Date ntfsTimeToJavaTime(final long ntfsTime) {
@@ -445,8 +445,8 @@ public void setAntiItem(final boolean isAntiItem) {
445445
/**
446446
* Sets the compressed CRC.
447447
*
448-
* @deprecated use setCompressedCrcValue instead.
449448
* @param crc the CRC.
449+
* @deprecated use setCompressedCrcValue instead.
450450
*/
451451
@Deprecated
452452
void setCompressedCrc(final int crc) {

src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,8 +783,8 @@ public Set<String> getOutputStreamCompressorNames() {
783783
* @param decompressConcatenated if true, decompress until the end of the input; if false, stop after the first stream and leave the input position to point
784784
* to the next byte after the stream.
785785
* @since 1.5
786-
* @deprecated 1.10 use the {@link #CompressorStreamFactory(boolean)} constructor instead.
787786
* @throws IllegalStateException if the constructor {@link #CompressorStreamFactory(boolean)} was used to create the factory.
787+
* @deprecated 1.10 use the {@link #CompressorStreamFactory(boolean)} constructor instead.
788788
*/
789789
@Deprecated
790790
public void setDecompressConcatenated(final boolean decompressConcatenated) {

src/main/java/org/apache/commons/compress/compressors/xz/XZCompressorInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ public XZCompressorInputStream(final InputStream inputStream, final boolean deco
204204
* @throws IOException if the input is not in the .xz format, the input is corrupt or truncated, the .xz headers specify options that are not supported by
205205
* this implementation, or the underlying {@code inputStream} throws an exception
206206
*
207-
* @deprecated Use {@link #builder()}.
208207
* @since 1.14
208+
* @deprecated Use {@link #builder()}.
209209
*/
210210
@Deprecated
211211
public XZCompressorInputStream(final InputStream inputStream, final boolean decompressConcatenated, final int memoryLimitKiB) throws IOException {

0 commit comments

Comments
 (0)