Skip to content

Commit 377ec45

Browse files
committed
style(Text to Speech): Fix checkstyle complaints
1 parent 9af9142 commit 377ec45

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

text-to-speech/src/main/java/com/ibm/watson/developer_cloud/text_to_speech/v1/model/MarkTiming.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import com.ibm.watson.developer_cloud.text_to_speech.v1.util.MarkTimingTypeAdapter;
66

77
@JsonAdapter(MarkTimingTypeAdapter.class)
8-
public class MarkTiming extends GenericModel{
8+
public class MarkTiming extends GenericModel {
99
private String mark;
1010
private Double time;
1111

text-to-speech/src/main/java/com/ibm/watson/developer_cloud/text_to_speech/v1/websocket/BaseSynthesizeCallback.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class BaseSynthesizeCallback implements SynthesizeCallback {
1313
* (non-Javadoc)
1414
* @see com.ibm.watson.developer_cloud.text_to_speech.v1.websocket.SynthesizeCallback#onConnected()
1515
*/
16-
public void onConnected() {}
16+
public void onConnected() { }
1717

1818
/*
1919
* (non-Javadoc)
@@ -40,33 +40,33 @@ public void onWarning(Exception e) {
4040
* @see
4141
* com.ibm.watson.developer_cloud.text_to_speech.v1.websocket.SynthesizeCallback#onDisconnected()
4242
*/
43-
public void onDisconnected() {}
43+
public void onDisconnected() { }
4444

4545
/*
4646
* (non-Javadoc)
4747
* @see com.ibm.watson.developer_cloud.text_to_speech.v1.websocket.SynthesizeCallback#onContentType()
4848
*/
4949
@Override
50-
public void onContentType(String contentType) {}
50+
public void onContentType(String contentType) { }
5151

5252
/*
5353
* (non-Javadoc)
5454
* @see com.ibm.watson.developer_cloud.text_to_speech.v1.websocket.SynthesizeCallback#onTimings()
5555
*/
5656
@Override
57-
public void onTimings(Timings timings) {}
57+
public void onTimings(Timings timings) { }
5858

5959
/*
6060
* (non-Javadoc)
6161
* @see com.ibm.watson.developer_cloud.text_to_speech.v1.websocket.SynthesizeCallback#onMarks()
6262
*/
6363
@Override
64-
public void onMarks(Marks marks) {}
64+
public void onMarks(Marks marks) { }
6565

6666
/*
6767
* (non-Javadoc)
6868
* @see com.ibm.watson.developer_cloud.text_to_speech.v1.websocket.SynthesizeCallback#onAudioStream()
6969
*/
7070
@Override
71-
public void onAudioStream(byte[] bytes) {}
71+
public void onAudioStream(byte[] bytes) { }
7272
}

text-to-speech/src/test/java/com/ibm/watson/developer_cloud/text_to_speech/v1/TextToSpeechIT.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import javax.sound.sampled.UnsupportedAudioFileException;
3737
import java.io.ByteArrayOutputStream;
3838
import java.io.File;
39-
import java.io.FileNotFoundException;
4039
import java.io.FileOutputStream;
4140
import java.io.IOException;
4241
import java.io.InputStream;
@@ -218,9 +217,9 @@ public void testDeleteUserData() {
218217

219218
@Test
220219
public void testSynthesizeUsingWebSocket() throws InterruptedException, IOException {
221-
String basicText = "One taught me love. One taught me patience, and one taught me pain. Now, I'm so amazing. Say " +
222-
"I've loved and I've lost, but that's not what I see. So, look what I got. Look what you taught me. And for " +
223-
"that, I say... thank u, next.";
220+
String basicText = "One taught me love. One taught me patience, and one taught me pain. Now, I'm so amazing. Say "
221+
+ "I've loved and I've lost, but that's not what I see. So, look what I got. Look what you taught me. And for "
222+
+ "that, I say... thank u, next.";
224223

225224
SynthesizeOptions synthesizeOptions = new SynthesizeOptions.Builder()
226225
.text(basicText)
@@ -283,9 +282,9 @@ public void testSynthesizeUsingWebSocketWithSsml() throws InterruptedException {
283282
List<String> ssmlMarks = new ArrayList<>();
284283
ssmlMarks.add("sean");
285284
ssmlMarks.add("ricky");
286-
String ssmlText = String.format("Thought I'd end up with <mark name=\"%s\" />Sean, <express-as type=\"Apology\"> " +
287-
"but he wasn't a match. </express-as> Wrote some songs about <mark name=\"%s\" />Ricky, now I listen and " +
288-
"laugh", ssmlMarks.get(0), ssmlMarks.get(1));
285+
String ssmlText = String.format("Thought I'd end up with <mark name=\"%s\" />Sean, <express-as type=\"Apology\"> "
286+
+ "but he wasn't a match. </express-as> Wrote some songs about <mark name=\"%s\" />Ricky, now I listen and "
287+
+ "laugh", ssmlMarks.get(0), ssmlMarks.get(1));
289288

290289
SynthesizeOptions synthesizeOptions = new SynthesizeOptions.Builder()
291290
.text(ssmlText)

0 commit comments

Comments
 (0)