Skip to content
Merged
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 pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@
<compilerArgs>
<arg>-XDignore.symbol.file</arg>
<arg>-Xlint:all</arg>
<arg>-Xlint:-processing</arg>
<arg>--add-exports </arg>
<arg>java.base/sun.security.internal.spec=openjceplus</arg>
<arg>--add-exports </arg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public abstract class OpenJCEPlusProvider extends java.security.Provider {

private AtomicInteger count = new AtomicInteger(0);

@SuppressWarnings("exports")
protected static final Debug debug = Debug.getInstance(DEBUG_VALUE);

OpenJCEPlusProvider(String name, String info) {
Expand Down Expand Up @@ -80,6 +81,7 @@ public void registerCleanable(Object owner, Runnable cleanAction) {
cleaner.register(owner, cleanAction);
}

@SuppressWarnings("exports")
public static Debug getDebug() {
return debug;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ static void preloadOCK() {
}
}

@SuppressWarnings("restricted")
private static boolean loadIfExists(File libraryFile) {
String libraryName = libraryFile.getAbsolutePath();

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/ibm/security/internal/spec/RawKeySpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public class RawKeySpec implements KeySpec {
/**
* @param key contains the key as a byte array
*/


@SuppressWarnings("this-escape")
public RawKeySpec(byte[] key) {
keyBytes = key.clone();
cleaner.register(this, cleanOCKResources(keyBytes));
Expand Down