Skip to content

Commit

Permalink
Adding missing NonNull
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Dec 26, 2024
1 parent d0b81b3 commit 8d9d0b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.hedera.block.server.verification.signature;

import com.hedera.pbj.runtime.io.buffer.Bytes;
import edu.umd.cs.findbugs.annotations.NonNull;

/**
* An interface for verifying signatures.
Expand All @@ -30,5 +31,5 @@ public interface SignatureVerifier {
* @param signature the signature to verify
* @return true if the signature is valid, false otherwise
*/
Boolean verifySignature(Bytes hash, Bytes signature);
Boolean verifySignature(@NonNull Bytes hash, Bytes signature);
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.hedera.block.server.verification.signature;

import com.hedera.pbj.runtime.io.buffer.Bytes;
import edu.umd.cs.findbugs.annotations.NonNull;
import javax.inject.Inject;

/**
Expand All @@ -39,7 +40,7 @@ public SignatureVerifierDummy() {}
* @return true if the signature is valid, false otherwise
*/
@Override
public Boolean verifySignature(Bytes hash, Bytes signature) {
public Boolean verifySignature(@NonNull Bytes hash, Bytes signature) {
// Dummy implementation that always returns true
return true;
}
Expand Down

0 comments on commit 8d9d0b6

Please sign in to comment.