Skip to content

Remove reflection from provider instantiation in tests - #1770

Open
michael-ma-dev wants to merge 1 commit into
IBM:mainfrom
michael-ma-dev:refactor/remove-reflection-tests
Open

Remove reflection from provider instantiation in tests#1770
michael-ma-dev wants to merge 1 commit into
IBM:mainfrom
michael-ma-dev:refactor/remove-reflection-tests

Conversation

@michael-ma-dev

Copy link
Copy Markdown
Collaborator

Multiple places use reflection to create providers unnecessarily.

Replace Class.forName(...).getDeclaredConstructor().newInstance() with direct constructors for OpenJCEPlus, OpenJCEPlusFIPS, and BouncyCastleProvider.

Fixes: #1709
Signed-off-by: Michael Ma michael.ma@ibm.com

Multiple places use reflection to create providers unnecessarily.
Replace `Class.forName(...).getDeclaredConstructor().newInstance()` with
direct constructors for `OpenJCEPlus`, `OpenJCEPlusFIPS`, and
`BouncyCastleProvider`.

Fixes: IBM#1709
Signed-off-by: Michael Ma <michael.ma@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Reflection from Tests

1 participant