Skip to content

Commit

Permalink
JNI/JSSE: clean up ant build warnings for Corretto 20.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cconlon committed Sep 20, 2024
1 parent a9c28d7 commit ad13bea
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/java/com/wolfssl/WolfSSL.java
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,9 @@ public static void loadLibraryAbsolute(String libPath)
* @param file File to read into byte array
*
* @return byte array representing input File, or null if file is null
*
* @throws FileNotFoundException if input file is not found
* @throws IOException if unable to read entire file
*/
protected static byte[] fileToBytes(File file)
throws FileNotFoundException, IOException {
Expand Down
6 changes: 6 additions & 0 deletions src/java/com/wolfssl/provider/jsse/WolfSSLDebug.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ public class WolfSSLDebug {
*/
private static WolfSSLNativeLoggingCallback nativeLogCb = null;

/**
* Default constructor for wolfJSSE debug class.
*/
public WolfSSLDebug() {
}

private static boolean checkProperty() {

String enabled = System.getProperty("wolfjsse.debug");
Expand Down
3 changes: 3 additions & 0 deletions src/java/com/wolfssl/provider/jsse/WolfSSLEngineHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,9 @@ protected synchronized int saveSession() {
return WolfSSL.SSL_FAILURE;
}

/**
* Clear internal state of this WolfSSLEngineHelper.
*/
protected synchronized void clearObjectState() {
this.ssl = null;
this.session = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,9 @@ protected synchronized void setResume() {
}
}

/**
* Update internally-stored session values.
*/
protected synchronized void updateStoredSessionValues() {

try {
Expand Down
6 changes: 6 additions & 0 deletions src/java/com/wolfssl/provider/jsse/WolfSSLUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
*/
public class WolfSSLUtil {

/**
* Default constructor for WolfSSLUtil class.
*/
public WolfSSLUtil() {
}

/**
* Sanitize or filter protocol list based on system property limitations.
*
Expand Down

0 comments on commit ad13bea

Please sign in to comment.