Skip to content

Commit

Permalink
fix: Fix some checkstyle cases for left curly.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Sep 11, 2023
1 parent 156938a commit b15bde3
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 12 deletions.
3 changes: 3 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<property name="tokens" value="LITERAL_FINALLY"/>
<property name="tokens" value="LITERAL_IF"/>
<property name="tokens" value="LITERAL_TRY"/>
<property name="tokens" value="METHOD_DEF"/>
<property name="tokens" value="CLASS_DEF"/>
<property name="tokens" value="INTERFACE_DEF"/>
</module>

<!-- Skips empty blocks {}, to not skip them: value="alone" -->
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jitsi/jigasi/JvbConference.java
Original file line number Diff line number Diff line change
Expand Up @@ -1414,10 +1414,10 @@ public void peerStateChanged(CallPeerChangeEvent evt)
}

@Override
public void outgoingCallCreated(CallEvent event) { }
public void outgoingCallCreated(CallEvent event) {}

@Override
public void callEnded(CallEvent event) { }
public void callEnded(CallEvent event) {}
}

private class JvbCallChangeListener
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jitsi/jigasi/SipGateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public void incomingCallReceived(CallEvent event)
}

@Override
public void outgoingCallCreated(CallEvent event) { }
public void outgoingCallCreated(CallEvent event) {}

@Override
public void callEnded(CallEvent event)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jitsi/jigasi/SipGatewaySession.java
Original file line number Diff line number Diff line change
Expand Up @@ -1430,10 +1430,10 @@ class SipCallStateListener
{

@Override
public void callPeerAdded(CallPeerEvent evt) { }
public void callPeerAdded(CallPeerEvent evt) {}

@Override
public void callPeerRemoved(CallPeerEvent evt) { }
public void callPeerRemoved(CallPeerEvent evt) {}

@Override
public void callStateChanged(CallChangeEvent evt)
Expand Down
15 changes: 12 additions & 3 deletions src/main/java/org/jitsi/jigasi/sounds/PlaybackQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,30 @@ public PlaybackData(String fileName,
*
* @return File to play.
*/
String getPlaybackFileName() { return playbackFileName; }
String getPlaybackFileName()
{
return playbackFileName;
}

/**
* Used to run specific code.
*
* @return <tt>PlaybackDelegate</tt>
*/
PlaybackDelegate getPlaybackDelegate() { return playbackDelegate; }
PlaybackDelegate getPlaybackDelegate()
{
return playbackDelegate;
}

/**
* Returns the caller.
*
* @return Call to send audio to.
*/
Call getPlaybackCall() { return playbackCall; }
Call getPlaybackCall()
{
return playbackCall;
}

/**
* Checks for equals by just checking the filename as this is what is to be played.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
* @author Pinglei He
*/
public class LibreTranslateTranslationService
implements TranslationService {

implements TranslationService
{
/*
* Class representing the json response body from LibreTranslate where response has status code 200.
* Used for json-to-POJO conversion with Gson.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ public class Participant
* @return a {@code String} or {@code null} if this instance has not been
* initialized enough to get a proper debug name(not joined any room yet).
*/
String getDebugName() {
String getDebugName()
{
ChatRoomMember _chatMember = this.chatMember;

if (_chatMember == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ public void configureTranslationManager()
*
* @return a {@code String}
*/
private String getDebugName() {
private String getDebugName()
{
return roomName;
}

Expand Down

0 comments on commit b15bde3

Please sign in to comment.