Skip to content

Commit 57a2409

Browse files
committed
checkstyle validate
1 parent 6325935 commit 57a2409

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎src/main/java/com/pubnub/api/managers/StateManager.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ private List<String> prepareMembershipList(final Map<String, SubscriptionItem> d
142142
return response;
143143
}
144144

145-
public boolean isEmpty()
146-
{
145+
public boolean isEmpty() {
147146
return (channels.isEmpty() && presenceChannels.isEmpty() && groups.isEmpty());
148147
}
149148
}

‎src/main/java/com/pubnub/api/managers/SubscriptionManager.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,9 @@ public void onResponse(final Boolean result, final PNStatus status) {
145145
}
146146
});
147147

148-
if(this.subscriptionState.isEmpty())
149-
{
148+
if (this.subscriptionState.isEmpty()) {
150149
region = null;
151-
timetoken=0L;
150+
timetoken = 0L;
152151
}
153152
reconnect();
154153
}

0 commit comments

Comments
 (0)