-
Notifications
You must be signed in to change notification settings - Fork 8
[feature] Facility for listing providers and algorithms #5
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
base: main
Are you sure you want to change the base?
Conversation
b885ea2
to
00f3b55
Compare
00f3b55
to
1c340e5
Compare
1c340e5
to
3fcc9ff
Compare
src/test/java/ro/kuberam/libs/java/crypto/encrypt/SymmetricEncryptionTest.java
Outdated
Show resolved
Hide resolved
|
||
CryptoError(String code, String message) { | ||
CryptoError(final String code, final String message, @Nullable final Class<? extends Throwable>... describesExceptions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just out of curiosity:
The parameter is described as @Nullable Class<? extends Thowable>... describesExceptions
But the property is @Nullable final Class<? extends Throwable>[] describesExceptions;
What are the three dots for? Can they be used interchangeably?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the three dots for
The ellipsis indicates a varargs of the specified type.
Can they be used interchangeably?
No. Ellipsis are only valid on the last arg of a parameter list, and you have to be careful on typing. Consider... void fn(String... x)
, is that requesting an array of string or 1+n strings, how you call fn
is important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so very much like the ...rest
argument in JavaScript. Interesting! Thanks for clarifying this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was a lot to take in. It looks good to me. Certainly a refactoring for the better plus additional features.
No description provided.