Lint cleanups.

This commit is contained in:
akwizgran
2018-11-26 11:40:39 +00:00
parent 98633f5e7c
commit 56ac755e96
11 changed files with 39 additions and 39 deletions

View File

@@ -1166,10 +1166,9 @@ public class IntroductionIntegrationTest
@ParametersNotNullByDefault
private abstract class IntroductionListener implements EventListener {
protected volatile boolean aborted = false;
protected volatile Event latestEvent;
volatile boolean aborted = false;
volatile Event latestEvent;
@SuppressWarnings("WeakerAccess")
IntroductionResponse getResponse() {
assertTrue(
latestEvent instanceof IntroductionResponseReceivedEvent);

View File

@@ -326,6 +326,7 @@ public class GroupInvitationManagerImplTest extends BrambleMockTestCase {
}
}
@SuppressWarnings("ResultOfMethodCallIgnored")
private void expectParseMessageMetadata() throws Exception {
context.checking(new Expectations() {{
oneOf(messageParser).parseMetadata(meta);
@@ -351,6 +352,7 @@ public class GroupInvitationManagerImplTest extends BrambleMockTestCase {
expectStoreSession(session, storageMessage.getId());
}
@SuppressWarnings("ResultOfMethodCallIgnored")
@Nullable
private Session expectHandleFirstMessage(Role role,
MessageMetadata messageMetadata, MessageType type)
@@ -363,23 +365,20 @@ public class GroupInvitationManagerImplTest extends BrambleMockTestCase {
}});
if (type == ABORT || type == LEAVE) return null;
AbstractProtocolEngine engine;
Session session;
if (type == INVITE) {
assertEquals(Role.INVITEE, role);
engine = inviteeEngine;
session = inviteeSession;
expectIndividualMessage(type, inviteeEngine, inviteeSession);
return inviteeSession;
} else if (type == JOIN) {
assertEquals(Role.PEER, role);
engine = peerEngine;
session = peerSession;
expectIndividualMessage(type, peerEngine, peerSession);
return peerSession;
} else {
throw new AssertionError();
}
expectIndividualMessage(type, engine, session);
return session;
}
@SuppressWarnings("ResultOfMethodCallIgnored")
@Nullable
private Session expectHandleMessage(Role role,
MessageMetadata messageMetadata, BdfDictionary state,
@@ -809,6 +808,7 @@ public class GroupInvitationManagerImplTest extends BrambleMockTestCase {
.isInvitationAllowed(contact, privateGroup.getId()));
}
@SuppressWarnings("ResultOfMethodCallIgnored")
private void expectIsInvitationAllowed(CreatorState state)
throws Exception {
expectGetSession(oneResult, sessionId, contactGroup.getId());