Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@
includeantruntime="false">
<exclude name="com/wolfssl/provider/jce/test/**" unless="jar.includes.jce"/>
<compilerarg value="-Xlint:-options" />
<compilerarg value="-Xlint:-path" />
</javac>

</target>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/wolfssl/provider/jce/WolfCryptCipher.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ private int mgf1SpecToWolfCryptMgf(MGF1ParameterSpec mgfSpec)
* @param spec OAEPParameterSpec containing OAEP parameters
* @throws InvalidAlgorithmParameterException if parameters are invalid
*/
@SuppressWarnings("deprecation")
private void setOaepParams(OAEPParameterSpec spec)
throws InvalidAlgorithmParameterException {

Expand Down Expand Up @@ -1983,7 +1984,7 @@ private void log(String msg) {
() -> "[" + algString + "-" + algMode + "] " + msg);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/wolfssl/provider/jce/WolfCryptDebug.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public String format(LogRecord record) {
Level level = record.getLevel();
String levelStr = level != null ? level.getName() : "UNKNOWN";

@SuppressWarnings("deprecation")
long threadId = record.getThreadID();
String message = record.getMessage();
if (message == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ private void log(String msg) {
() -> "[" + algString + "] " + msg);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ private void log(String msg) {
() -> "[" + algString + "] " + msg);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected synchronized void finalize() throws Throwable {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/wolfssl/provider/jce/WolfCryptMac.java
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ private void log(String msg) {
() -> "[" + algString + "] " + msg);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public Object clone() {
return new WolfCryptMessageDigestMd5(md5Copy);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public Object clone() {
return new WolfCryptMessageDigestSha(shaCopy);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public Object clone() {
return new WolfCryptMessageDigestSha224(shaCopy);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public Object clone() {
return new WolfCryptMessageDigestSha256(shaCopy);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public Object clone() {
return new WolfCryptMessageDigestSha3(shaCopy);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public Object clone() {
return new WolfCryptMessageDigestSha384(shaCopy);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public Object clone() {
return new WolfCryptMessageDigestSha512(shaCopy);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public void errorCallback(int ok, int err, String hash) {
/**
* Create new WolfCryptProvider object
*/
@SuppressWarnings("deprecation")
public WolfCryptProvider() {
super("wolfJCE", 1.10, "wolfCrypt JCE Provider");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void log(String msg) {
WolfCryptDebug.log(getClass(), WolfCryptDebug.INFO, () -> msg);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected synchronized void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ private void log(String msg) {
() -> "[" + keyString + "-" + digestString + "] " + msg);
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected synchronized void finalize() throws Throwable {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ public void clearCache() {
/**
* Cleanup method to wipe KEK cache when KeyStore is garbage collected.
*/
@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/wolfssl/wolfcrypt/NativeStruct.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void releaseNativeStruct() {

private native void xfree(long pointer);

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable {
releaseNativeStruct();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ public synchronized void free() throws IllegalStateException {
}
}

@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
@Override
protected void finalize() throws Throwable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public void close() {
}

@Override
@SuppressWarnings("deprecation")
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() throws Throwable {
try {
free();
Expand Down
Loading