Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor changes #135

Merged
merged 1 commit into from Oct 21, 2021
Merged

Minor changes #135

merged 1 commit into from Oct 21, 2021

Conversation

arturobernalg
Copy link
Member

@arturobernalg arturobernalg commented Jun 16, 2021

  • Replace with <>
  • Simplify conditions and avoid extra checks.
  • Use java array style

@coveralls
Copy link

coveralls commented Jun 16, 2021

Coverage Status

Coverage increased (+0.03%) to 83.821% when pulling 33ee5a3 on arturobernalg:feature/minor_changes into 5263d0b on apache:master.

@garydgregory garydgregory changed the title MInors changes: MInors changes Oct 20, 2021
Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good aside from the few comments I sprinkled throughout.

@@ -161,7 +161,7 @@
* @return 1 for success and 0 for failure.
*/
public static native int EVP_CipherInit_ex(PointerByReference ctx, PointerByReference cipher,
PointerByReference impl, byte key[], byte iv[], int enc);
PointerByReference impl, byte[] key, byte[] iv, int enc);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No weird formatting please.

@@ -133,7 +133,7 @@
* @return 1 for success and 0 for failure.
*/
public static native int EVP_CipherInit_ex(PointerByReference ctx, PointerByReference cipher,
PointerByReference impl, byte key[], byte iv[], int enc);
PointerByReference impl, byte[] key, byte[] iv, int enc);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No weird formatting please.

@@ -161,10 +161,6 @@ final protected int next(final int numBits) {
public void close() {
closeRdrandEngine();
OpenSslNativeJna.ENGINE_cleanup();

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless you've authored these comments or you know they are invalid, leave them alone please.

* Simplify conditions and avoid extra checks.
* Use java array.
@arturobernalg
Copy link
Member Author

arturobernalg commented Oct 20, 2021

HI @garydgregory
Fixed all the remarks.
TY

@garydgregory garydgregory changed the title MInors changes Minor changes Oct 21, 2021
@garydgregory garydgregory merged commit 896b2a2 into apache:master Oct 21, 2021
asfgit pushed a commit that referenced this pull request Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants