Skip to content

Commit 469c480

Browse files
committed
code cleanup from linter
1 parent 64f6ef5 commit 469c480

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

auth/src/main/java/com/google/cloud/auth/samples/AuthExample.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import java.io.FileInputStream;
3232
import java.io.IOException;
3333

34-
/** Demonstrate various ways to authenticate requests using Cloud Storage as an example call. */
34+
/** Demonstrate various ways to authenticate requests using Cloud Storage/Language as an example call. */
3535
public class AuthExample {
3636
// [START auth_cloud_implicit]
3737
static void authImplicit() {
@@ -97,13 +97,12 @@ static void authApiKey(String apiKey) throws IOException {
9797
LanguageServiceSettings settings =
9898
LanguageServiceSettings.newBuilder().setApiKey(apiKey).build();
9999
LanguageServiceClient client = LanguageServiceClient.create(settings);
100-
101100
Document document =
102101
Document.newBuilder().setContent("Hello World!").setType(Document.Type.PLAIN_TEXT).build();
103102

104103
AnalyzeSentimentResponse actualResponse = client.analyzeSentiment(document);
105-
System.out.println("response " + actualResponse.getDocumentSentiment().toString());
106-
System.exit(0);
104+
105+
System.out.println(actualResponse.getDocumentSentiment().toString());
107106
}
108107
// [END auth_cloud_api_keys]
109108

0 commit comments

Comments
 (0)