Skip to content

Commit

Permalink
sonar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
firaja committed Aug 29, 2023
1 parent 3b2706e commit aa1d94e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/password4j/Argon2Function.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.password4j.types.Argon2;

import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down
5 changes: 3 additions & 2 deletions src/test/com/password4j/PasswordTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1219,10 +1219,11 @@ public void afterMigrationTests()
assertFalse(Password.check((byte[]) null, new Hash(MessageDigestFunction.getInstance("MD5"), new byte[0], new byte[0], new byte[0])));
assertFalse(Password.check((CharSequence) null, new Hash(MessageDigestFunction.getInstance("MD5"), new byte[0], new byte[0], new byte[0])));
assertThrows(BadParametersException.class, () -> Password.check(new byte[0], (Hash) null));
assertThrows(BadParametersException.class, () -> Password.check(new byte[0], new Hash(null, new byte[0], new byte[0], new byte[0])));
Hash emptyHash = new Hash(null, new byte[0], new byte[0], new byte[0]);
assertThrows(BadParametersException.class, () -> Password.check(new byte[0], emptyHash));
}

@Test
@Test(expected = Test.None.class)
public void issue120()
{
// GIVEN
Expand Down

0 comments on commit aa1d94e

Please sign in to comment.