Skip to content

Commit

Permalink
style: Fix left curly checkstyle. (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Sep 23, 2022
1 parent 2fbea13 commit d2cde82
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 9 deletions.
8 changes: 8 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
<property name="tokens" value="LITERAL_FINALLY"/>
<property name="tokens" value="LITERAL_IF"/>
<property name="tokens" value="LITERAL_TRY"/>
<property name="tokens" value="LITERAL_SYNCHRONIZED"/>
<property name="tokens" value="ANNOTATION_DEF"/>
<property name="tokens" value="CLASS_DEF"/>
<property name="tokens" value="CTOR_DEF"/>
<property name="tokens" value="ENUM_DEF"/>
<property name="tokens" value="INTERFACE_DEF"/>
<property name="tokens" value="METHOD_DEF"/>
<property name="tokens" value="RECORD_DEF"/>
</module>

<!-- Skips empty blocks {}, to not skip them: value="alone" -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,16 @@ public boolean isJibri()
}

@Override
public boolean isAudioMuted() { return isAudioMuted; }
public boolean isAudioMuted()
{
return isAudioMuted;
}

@Override
public boolean isVideoMuted() { return isVideoMuted; }
public boolean isVideoMuted()
{
return isVideoMuted;
}

private void setSourceInfo(String sourceInfoString)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ public class ChatRoomImpl
*/
private final EventEmitter<ChatRoomListener> eventEmitter = new SyncEventEmitter<>();

private static class MucConfigFields {
private static class MucConfigFields
{
static final String IS_BREAKOUT_ROOM = "muc#roominfo_isbreakout";
static final String MAIN_ROOM = "muc#roominfo_breakout_main_room";
static final String MEETING_ID = "muc#roominfo_meetingId";
Expand Down Expand Up @@ -224,12 +225,14 @@ public void join()
}

@Override
public boolean isBreakoutRoom() {
public boolean isBreakoutRoom()
{
return isBreakoutRoom;
}

@Override
public String getMainRoom() {
public String getMainRoom()
{
return mainRoom;
}

Expand Down Expand Up @@ -657,10 +660,16 @@ private void sendPresence(Presence presence)
}

@Override
public int getAudioSendersCount() { return numAudioSenders; }
public int getAudioSendersCount()
{
return numAudioSenders;
}

@Override
public int getVideoSendersCount() { return numVideoSenders; }
public int getVideoSendersCount()
{
return numVideoSenders;
}

public void addAudioSender()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ public PacketDebugger(XMPPConnection connection, @NonNull String id)
}

@Override
public void onIncomingStreamElement(TopLevelStreamElement streamElement) {
public void onIncomingStreamElement(TopLevelStreamElement streamElement)
{
logger.debug(() -> "RCV PKT (" + id + "): " + streamElement.toXML());
}

@Override
public void onOutgoingStreamElement(TopLevelStreamElement streamElement) {
public void onOutgoingStreamElement(TopLevelStreamElement streamElement)
{
logger.debug(() -> "SENT PKT (" + id + "): " + streamElement.toXML());
}

Expand Down

0 comments on commit d2cde82

Please sign in to comment.