1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-09 10:19:41 +02:00

More checkstyle whitespace related checks

This commit is contained in:
Florian Schmaus 2017-05-23 16:45:04 +02:00
parent 847890b037
commit ce1cddc722
140 changed files with 583 additions and 512 deletions

View file

@ -537,7 +537,7 @@ public class SmackIntegrationTestFramework {
throw new IllegalStateException();
}
if (StringUtils.isNullOrEmpty(accountUsername)) {
accountUsername = USERNAME_PREFIX + '-' + middlefix + '-' +testRunResult.testRunId;
accountUsername = USERNAME_PREFIX + '-' + middlefix + '-' + testRunResult.testRunId;
}
if (StringUtils.isNullOrEmpty(accountPassword)) {
accountPassword = StringUtils.insecureRandomString(16);

View file

@ -26,7 +26,7 @@ public class ResultSyncPoint<R, E extends Exception> {
private E exception;
public R waitForResult(long timeout) throws E, InterruptedException, TimeoutException {
synchronized(this) {
synchronized (this) {
if (result != null) {
return result;
}
@ -51,14 +51,14 @@ public class ResultSyncPoint<R, E extends Exception> {
public void signal(R result) {
synchronized(this) {
synchronized (this) {
this.result = Objects.requireNonNull(result);
notifyAll();
}
}
public void signal(E exception) {
synchronized(this) {
synchronized (this) {
this.exception = Objects.requireNonNull(exception);
notifyAll();
}

View file

@ -39,7 +39,7 @@ import org.jivesoftware.smack.XMPPException.XMPPErrorException;
public class HttpFileUploadIntegrationTest extends AbstractSmackIntegrationTest {
private static final int FILE_SIZE = 1024*128;
private static final int FILE_SIZE = 1024 * 128;
private final HttpFileUploadManager hfumOne;

View file

@ -44,7 +44,7 @@ public class ResultSyncPointTest {
assertEquals(result, receivedResult);
}
@Test(expected=TestException.class)
@Test(expected = TestException.class)
public void exceptionTestResultSyncPoint() throws InterruptedException, TimeoutException, Exception {
final CyclicBarrier barrier = new CyclicBarrier(2);
final ResultSyncPoint<String, TestException> rsp = new ResultSyncPoint<>();