Skip to content

Commit 77a2f72

Browse files
author
gefeili
committed
Add the missing @deprecated annotation to nine members already carrying a javadoc @deprecated tag, clearing javac's [dep-ann] warning for each
1 parent 46f8389 commit 77a2f72

8 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎core/src/main/java/org/bouncycastle/asn1/ASN1BitString.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public static ASN1BitString getTagged(ASN1TaggedObject taggedObject, boolean dec
8080
*
8181
* @deprecated Will be removed
8282
*/
83+
@Deprecated
8384
static protected int getPadBits(int bitString)
8485
{
8586
int val = 0;
@@ -130,6 +131,7 @@ static protected int getPadBits(int bitString)
130131
*
131132
* @deprecated Will be removed
132133
*/
134+
@Deprecated
133135
static protected byte[] getBytes(int bitString)
134136
{
135137
if (bitString == 0)

‎core/src/main/java/org/bouncycastle/asn1/ASN1InputStream.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ protected int getLimit()
122122
/**
123123
* @deprecated No longer used; will be removed
124124
*/
125+
@Deprecated
125126
protected int readLength()
126127
throws IOException
127128
{
@@ -136,6 +137,7 @@ protected int readLength()
136137
/**
137138
* @deprecated No longer used; will be removed
138139
*/
140+
@Deprecated
139141
protected void readFully(
140142
byte[] bytes)
141143
throws IOException

‎core/src/main/java/org/bouncycastle/asn1/DERExternal.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public DERExternal(ASN1EncodableVector vector)
5050
*
5151
* @deprecated Use {@link #fromSequence(ASN1Sequence)} instead.
5252
*/
53+
@Deprecated
5354
public DERExternal(DERSequence sequence)
5455
{
5556
super(sequence);

‎core/src/main/java/org/bouncycastle/asn1/DLExternal.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public DLExternal(ASN1EncodableVector vector)
5050
*
5151
* @deprecated Use {@link #fromSequence(ASN1Sequence)} instead.
5252
*/
53+
@Deprecated
5354
public DLExternal(DLSequence sequence)
5455
{
5556
super(sequence);

‎core/src/main/java/org/bouncycastle/crypto/engines/Salsa20Engine.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ protected void packTauOrSigma(int keyLength, int[] state, int stateOffset)
3636
}
3737

3838
/** @deprecated */
39+
@Deprecated
3940
protected final static byte[]
4041
sigma = Strings.toByteArray("expand 32-byte k"),
4142
tau = Strings.toByteArray("expand 16-byte k");

‎core/src/main/java/org/bouncycastle/pqc/crypto/mlkem/MLKEMPrivateKeyParameters.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ private void validate()
124124
}
125125

126126
/** @deprecated Use {@link #withPreferredFormat(int)} instead. */
127+
@Deprecated
127128
public MLKEMPrivateKeyParameters getParametersWithFormat(int format)
128129
{
129130
return withPreferredFormat(format);

‎core/src/main/java/org/bouncycastle/util/Longs.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public static Long valueOf(long value)
8888
/**
8989
* @deprecated Use {@link Nat#xorTo64(int, long[], int, long[], int)} instead.
9090
*/
91+
@Deprecated
9192
public static void xorTo(int len, long[] x, int xOff, long[] z, int zOff)
9293
{
9394
Nat.xorTo64(len, x, xOff, z, zOff);

‎tls/src/main/java/org/bouncycastle/tls/SignatureScheme.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,13 @@ public class SignatureScheme
5353
public static final int mldsa87 = 0x0906;
5454

5555
/** @deprecated Use 'mldsa44' instead. */
56+
@Deprecated
5657
public static final int DRAFT_mldsa44 = mldsa44;
5758
/** @deprecated Use 'mldsa65' instead. */
59+
@Deprecated
5860
public static final int DRAFT_mldsa65 = mldsa65;
5961
/** @deprecated Use 'mldsa87' instead. */
62+
@Deprecated
6063
public static final int DRAFT_mldsa87 = mldsa87;
6164

6265
/*

0 commit comments

Comments
 (0)