Skip to content

Commit 64e101e

Browse files
tswastchingor13
authored andcommitted
samples: Add quickstarts to root module.
Fixes checkstyle errors in samples.
1 parent 769a28f commit 64e101e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

translate/snippets/src/main/java/com/example/translate/QuickstartSample.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ public static void main(String... args) throws Exception {
3232
String text = "Hello, world!";
3333

3434
// Translates some text into Russian
35-
Translation translation = translate.translate(
36-
text,
37-
TranslateOption.sourceLanguage("en"),
38-
TranslateOption.targetLanguage("ru")
39-
);
35+
Translation translation =
36+
translate.translate(
37+
text,
38+
TranslateOption.sourceLanguage("en"),
39+
TranslateOption.targetLanguage("ru"));
40+
4041

4142
System.out.printf("Text: %s%n", text);
4243
System.out.printf("Translation: %s%n", translation.translatedText());

0 commit comments

Comments
 (0)