Skip to content

Commit 7c224b2

Browse files
committed
Updated vision/label
1 parent 8c82e98 commit 7c224b2

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

vision/label/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Google Cloud Vision API Java Image Labeling example
22

3+
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=vision/label/README.md">
4+
<img alt="Open in Cloud Shell" src ="http://gstatic.com/cloudssh/images/open-btn.png"></a>
5+
36
## Download Maven
47

58
This sample uses the [Apache Maven][maven] build system. Before getting started, be

vision/label/pom.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
<groupId>com.google.cloud.vision.samples</groupId>
2222
<artifactId>vision-label</artifactId>
2323

24-
<!-- Parent defines shared plugins for linting and unit testing. -->
24+
<!--
25+
The parent pom defines common style checks and testing strategies for our samples.
26+
Removing or replacing it should not affect the execution of the samples in anyway.
27+
-->
2528
<parent>
26-
<groupId>com.google.cloud</groupId>
27-
<artifactId>doc-samples</artifactId>
28-
<version>1.0.0</version>
29-
<relativePath>../..</relativePath>
29+
<groupId>com.google.cloud.samples</groupId>
30+
<artifactId>shared-configuration</artifactId>
31+
<version>1.0.8</version>
3032
</parent>
3133

3234
<properties>

vision/label/src/main/java/com/google/cloud/vision/samples/label/LabelApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.google.cloud.vision.samples.label;
1818

1919
// [START import_libraries]
20+
2021
import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
2122
import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport;
2223
import com.google.api.client.json.JsonFactory;
@@ -31,7 +32,6 @@
3132
import com.google.api.services.vision.v1.model.Feature;
3233
import com.google.api.services.vision.v1.model.Image;
3334
import com.google.common.collect.ImmutableList;
34-
3535
import java.io.IOException;
3636
import java.io.PrintStream;
3737
import java.nio.file.Files;

vision/label/src/test/java/com/google/cloud/vision/samples/label/LabelAppIT.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@
2121

2222
import com.google.api.services.vision.v1.model.EntityAnnotation;
2323
import com.google.common.collect.ImmutableSet;
24-
24+
import java.io.IOException;
25+
import java.nio.file.Paths;
26+
import java.util.List;
2527
import org.junit.Before;
2628
import org.junit.Test;
2729
import org.junit.runner.RunWith;
2830
import org.junit.runners.JUnit4;
2931

30-
import java.io.IOException;
31-
import java.nio.file.Paths;
32-
import java.util.List;
33-
3432
/**
3533
* Integration (system) tests for {@link LabelApp}.
3634
*/

vision/label/src/test/java/com/google/cloud/vision/samples/label/LabelAppTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@
2020

2121
import com.google.api.services.vision.v1.model.EntityAnnotation;
2222
import com.google.common.collect.ImmutableList;
23-
24-
import org.junit.Test;
25-
import org.junit.runner.RunWith;
26-
import org.junit.runners.JUnit4;
27-
2823
import java.io.ByteArrayOutputStream;
2924
import java.io.PrintStream;
3025
import java.nio.file.Paths;
26+
import org.junit.Test;
27+
import org.junit.runner.RunWith;
28+
import org.junit.runners.JUnit4;
3129

3230
/**
3331
* Unit tests for {@link LabelApp}.

0 commit comments

Comments
 (0)