Skip to content

Conversation

@marekoid
Copy link
Contributor

No description provided.

@marekoid marekoid requested review from daniellevass and mdpye March 30, 2020 18:04
throw new IllegalArgumentException("key should be 32B, is: " + key.length + "B");
}
checkNotNull(key, "null key passed");
checkArgument(key.length == 32, "key should be 32B, is: " + key.length + "B");
Copy link
Contributor

@mdpye mdpye Mar 31, 2020

Choose a reason for hiding this comment

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

Suggested change
checkArgument(key.length == 32, "key should be 32B, is: " + key.length + "B");
checkArgument(key.length == 32, "key length should be 32 bytes, but is " + key.length + " bytes");

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure what was wrong with the concise form, but didn't mind much the longer one so done that: dbdea4e just couldn't apply from GH as the 100 char limit was broken

@marekoid marekoid requested review from daniellevass and mdpye March 31, 2020 10:45
throw new IllegalArgumentException("key should be 32B, is: " + key.length + "B");
}
checkNotNull(key, "null key passed");
checkArgument(key.length == 32, "key length should be 32 bytes, but is " +
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should -> must if we're failing people for it not being what we expect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if that doesn't sound too strong and if "should" is not more common for such messages (after all it also can be used to express obligation). @mdpye thoughts? Changed it for feedback: bb925cd

@marekoid marekoid requested review from daniellevass and mdpye March 31, 2020 11:48
@marekoid marekoid merged commit 593ca15 into decrypt-integration Mar 31, 2020
@marekoid marekoid deleted the preconditions branch March 31, 2020 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants