mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Update errorprone(-plugin) and make Unused(Variable|Method) an error
This commit is contained in:
parent
68d7d738b6
commit
7f0dc72dab
46 changed files with 81 additions and 126 deletions
|
@ -80,7 +80,7 @@ public class UntrustedOmemoIdentityException extends Exception {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
public String getMessage() {
|
||||
if (trustedKey != null) {
|
||||
return "Untrusted OMEMO Identity encountered:\n" +
|
||||
"Fingerprint of trusted key:\n" + trustedKey.blocksOf8Chars() + "\n" +
|
||||
|
|
|
@ -97,7 +97,7 @@ public class OmemoExceptionsTest {
|
|||
ArrayList<CryptoFailedException> el = new ArrayList<>();
|
||||
try {
|
||||
MultipleCryptoFailedException m2 = MultipleCryptoFailedException.from(el);
|
||||
fail("MultipleCryptoFailedException must not allow empty list.");
|
||||
fail("MultipleCryptoFailedException must not allow empty list, but returned: " + m2);
|
||||
} catch (IllegalArgumentException e) {
|
||||
// Expected
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue