Skip to content

Commit d2cde82

Browse files
authored
style: Fix left curly checkstyle. (#975)
1 parent 2fbea13 commit d2cde82

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

checkstyle.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
<property name="tokens" value="LITERAL_FINALLY"/>
1919
<property name="tokens" value="LITERAL_IF"/>
2020
<property name="tokens" value="LITERAL_TRY"/>
21+
<property name="tokens" value="LITERAL_SYNCHRONIZED"/>
22+
<property name="tokens" value="ANNOTATION_DEF"/>
23+
<property name="tokens" value="CLASS_DEF"/>
24+
<property name="tokens" value="CTOR_DEF"/>
25+
<property name="tokens" value="ENUM_DEF"/>
26+
<property name="tokens" value="INTERFACE_DEF"/>
27+
<property name="tokens" value="METHOD_DEF"/>
28+
<property name="tokens" value="RECORD_DEF"/>
2129
</module>
2230

2331
<!-- Skips empty blocks {}, to not skip them: value="alone" -->

jicofo-common/src/main/java/org/jitsi/impl/protocol/xmpp/ChatMemberImpl.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,16 @@ public boolean isJibri()
222222
}
223223

224224
@Override
225-
public boolean isAudioMuted() { return isAudioMuted; }
225+
public boolean isAudioMuted()
226+
{
227+
return isAudioMuted;
228+
}
226229

227230
@Override
228-
public boolean isVideoMuted() { return isVideoMuted; }
231+
public boolean isVideoMuted()
232+
{
233+
return isVideoMuted;
234+
}
229235

230236
private void setSourceInfo(String sourceInfoString)
231237
{

jicofo-common/src/main/java/org/jitsi/impl/protocol/xmpp/ChatRoomImpl.java

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ public class ChatRoomImpl
142142
*/
143143
private final EventEmitter<ChatRoomListener> eventEmitter = new SyncEventEmitter<>();
144144

145-
private static class MucConfigFields {
145+
private static class MucConfigFields
146+
{
146147
static final String IS_BREAKOUT_ROOM = "muc#roominfo_isbreakout";
147148
static final String MAIN_ROOM = "muc#roominfo_breakout_main_room";
148149
static final String MEETING_ID = "muc#roominfo_meetingId";
@@ -224,12 +225,14 @@ public void join()
224225
}
225226

226227
@Override
227-
public boolean isBreakoutRoom() {
228+
public boolean isBreakoutRoom()
229+
{
228230
return isBreakoutRoom;
229231
}
230232

231233
@Override
232-
public String getMainRoom() {
234+
public String getMainRoom()
235+
{
233236
return mainRoom;
234237
}
235238

@@ -657,10 +660,16 @@ private void sendPresence(Presence presence)
657660
}
658661

659662
@Override
660-
public int getAudioSendersCount() { return numAudioSenders; }
663+
public int getAudioSendersCount()
664+
{
665+
return numAudioSenders;
666+
}
661667

662668
@Override
663-
public int getVideoSendersCount() { return numVideoSenders; }
669+
public int getVideoSendersCount()
670+
{
671+
return numVideoSenders;
672+
}
664673

665674
public void addAudioSender()
666675
{

jicofo-common/src/main/java/org/jitsi/impl/protocol/xmpp/log/PacketDebugger.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ public PacketDebugger(XMPPConnection connection, @NonNull String id)
6464
}
6565

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

7172
@Override
72-
public void onOutgoingStreamElement(TopLevelStreamElement streamElement) {
73+
public void onOutgoingStreamElement(TopLevelStreamElement streamElement)
74+
{
7375
logger.debug(() -> "SENT PKT (" + id + "): " + streamElement.toXML());
7476
}
7577

0 commit comments

Comments
 (0)