Skip to content

Update PKCS12Test.java - #2012

Closed
cragkhit wants to merge 1 commit into
bcgit:mainfrom
cragkhit:main
Closed

Update PKCS12Test.java#2012
cragkhit wants to merge 1 commit into
bcgit:mainfrom
cragkhit:main

Conversation

@cragkhit

@cragkhit cragkhit commented Mar 4, 2025

Copy link
Copy Markdown

We are researchers from Mahidol University, Thailand, and the State University of Ceará, Brazil, working on a research project for improving open-source projects by using the latest accepted answer from Stack Overflow that matched your code snippet. We found this recommendation for improving your code from https://stackoverflow.com/questions/40056844.

Note: Our study is approved by the Institutional Review Board of Mahidol University. You can find the participant information sheet explaining this study https://drive.google.com/file/d/1ml5AqrtWQ9pnifTQyTFTcWQmwp6RuPA7/view?usp=sharing.

Proposed change

Adding direct object comparison and a null check to avoid NullPointerException in the isEqual() method.

Add direct object comparison and a null check to avoid NullPointerException in the `isEqual()` method.
@peterdettman

Copy link
Copy Markdown
Collaborator

Thanks for the PR. I have instead removed this isEqual method and referenced org.bouncycastle.util.Arrays#areEqual instead.

@peterdettman

Copy link
Copy Markdown
Collaborator

OK, I cleaned up those others too, thanks again.

hubot pushed a commit that referenced this pull request Mar 10, 2025
codelinaro-mirror-sync Bot pushed a commit to CodeLinaro-mirror/la_platform_external_bouncycastle that referenced this pull request Aug 4, 2026
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.

2 participants