mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
Bump errorprone to 2.2.0
This commit is contained in:
parent
214218c49b
commit
3132d9a224
17 changed files with 59 additions and 87 deletions
|
@ -312,6 +312,7 @@ public abstract class FileTransfer {
|
|||
return amountWritten;
|
||||
}
|
||||
|
||||
@SuppressWarnings("JavaLangClash")
|
||||
public enum Error {
|
||||
/**
|
||||
* No error.
|
||||
|
|
|
@ -160,7 +160,7 @@ public class InBandBytestreamManagerTest extends InitExtensions {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void shouldUseConfiguredStanzaType() throws SmackException, InterruptedException {
|
||||
public void shouldUseConfiguredStanzaType() throws SmackException, InterruptedException, XMPPException {
|
||||
InBandBytestreamManager byteStreamManager = InBandBytestreamManager.getByteStreamManager(connection);
|
||||
byteStreamManager.setStanza(StanzaType.MESSAGE);
|
||||
|
||||
|
@ -173,14 +173,10 @@ public class InBandBytestreamManagerTest extends InitExtensions {
|
|||
|
||||
});
|
||||
|
||||
try {
|
||||
// start In-Band Bytestream
|
||||
byteStreamManager.establishSession(targetJID);
|
||||
}
|
||||
catch (XMPPException e) {
|
||||
protocol.verifyAll();
|
||||
}
|
||||
// start In-Band Bytestream
|
||||
byteStreamManager.establishSession(targetJID);
|
||||
|
||||
protocol.verifyAll();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
package org.jivesoftware.smackx.pubsub;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
@ -77,6 +78,7 @@ public class ConfigureFormTest extends InitExtensions
|
|||
try
|
||||
{
|
||||
node.getNodeConfiguration();
|
||||
fail();
|
||||
}
|
||||
catch (XMPPErrorException e)
|
||||
{
|
||||
|
|
|
@ -67,12 +67,7 @@ public class DataValidationHelperTest {
|
|||
}
|
||||
|
||||
field.setType(FormField.Type.list_multi);
|
||||
try {
|
||||
element.checkConsistency(field);
|
||||
}
|
||||
catch (ValidationConsistencyException e) {
|
||||
fail("No correct check on consistency");
|
||||
}
|
||||
element.checkConsistency(field);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue