-
Notifications
You must be signed in to change notification settings - Fork 16
chore/remove class files, fix typos, code refactor and sonar findings #89
chore/remove class files, fix typos, code refactor and sonar findings #89
Conversation
@borisrizov-zf Can you re-run the build job, not sure why it is failing. |
@nitin-vavdiya seems that the dash license tool has some issues right now. |
|
@borisrizov-zf May I know what is the blocker to merge this PR? |
@nitin-vavdiya I was actually hoping to merge the #77 first. It's just taking some time. |
@@ -30,8 +30,8 @@ | |||
import org.eclipse.tractusx.ssi.lib.crypt.IPrivateKey; | |||
import org.eclipse.tractusx.ssi.lib.crypt.IPublicKey; | |||
import org.eclipse.tractusx.ssi.lib.crypt.jwk.JsonWebKey; | |||
import org.eclipse.tractusx.ssi.lib.crypt.x25519.x25519PrivateKey; | |||
import org.eclipse.tractusx.ssi.lib.crypt.x25519.x25519PublicKey; | |||
import org.eclipse.tractusx.ssi.lib.crypt.x25519.X25519PrivateKey; |
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.
This is a breaking change, I'm not sure it's necessary, just because sonar is squawking.
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.
This is just to align with Java naming convention
src/main/java/org/eclipse/tractusx/ssi/examples/BuildDIDDocEd25519VerificationKey2020.java
Show resolved
Hide resolved
src/main/java/org/eclipse/tractusx/ssi/examples/ResolveDIDDoc.java
Outdated
Show resolved
Hide resolved
@@ -57,7 +57,7 @@ public enum VerifiableType { | |||
* @param json the json | |||
* @param type the type | |||
*/ | |||
public Verifiable(Map<String, Object> json, VerifiableType type) { | |||
protected Verifiable(Map<String, Object> json, VerifiableType type) { |
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.
Why is the visibility changed?
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.
Same as above
src/main/java/org/eclipse/tractusx/ssi/lib/proof/IVerifier.java
Outdated
Show resolved
Hide resolved
@@ -39,18 +38,16 @@ public interface IVerifier { | |||
* model to get the public key of issuer. | |||
* | |||
* @param hashedLinkedData the hashed linked data | |||
* @param document {@link VerifiableCredential} the verifiable | |||
* @param verifiable {@link VerifiableCredential} the verifiable | |||
* @return boolean if verified or not | |||
* @throws UnsupportedSignatureTypeException |
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.
Seems unused.
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.
verifiable is a method argument of verify method
src/test/java/org/eclipse/tractusx/ssi/lib/proof/SignAndVerifyTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/eclipse/tractusx/ssi/lib/proof/SignAndVerifyTest.java
Outdated
Show resolved
Hide resolved
@borisrizov-zf Class rename is only to align with Java naming standard |
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.
Please rebase, as we've merged a PR since the last edit. I'll merge after.
39c8365
to
9591bec
Compare
@borisrizov-zf rebase done |
@nitin-vavdiya hi, I checked the rebase-ability of the branch against #91 . They have merge conflicts, so please wait for the merge and rebase. While you're rebasing, please also fix typos in the git commits such as in |
a029a92
to
81408ff
Compare
@nitin-vavdiya Hi, the JWT branch is merged. You can go ahead and rebase. You'll get some issues, but it's mostly updated docstrings. |
…java Co-authored-by: Boris Rizov (ZF Friedrichshafen AG) <[email protected]>
…Test.java Co-authored-by: Boris Rizov (ZF Friedrichshafen AG) <[email protected]>
…Test.java Co-authored-by: Boris Rizov (ZF Friedrichshafen AG) <[email protected]>
81408ff
to
c1a86a5
Compare
@borisrizov-zf Rebase done |
Description
Before sonar fixes:
After sonar fixes:
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review: