From 3df6b4a3c3534d490af1fbf873350adb772805ff Mon Sep 17 00:00:00 2001 From: Jerjou Date: Tue, 29 Nov 2016 20:43:49 -0800 Subject: [PATCH] samples: deprecated methods -> undeprecated versions. (#428) --- .../src/main/java/com/example/translate/QuickstartSample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 8339650d077..ce9c01d4399 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -40,7 +40,7 @@ public static void main(String... args) throws Exception { System.out.printf("Text: %s%n", text); - System.out.printf("Translation: %s%n", translation.translatedText()); + System.out.printf("Translation: %s%n", translation.getTranslatedText()); } } // [END translate_quickstart]