Skip to content

Commit 205f96e

Browse files
jakubrauchlesv
authored andcommitted
Fix compilation failure when running mvn clean package -DskipTests (GoogleCloudPlatform#1795)
InspectImageFile sample was failing to compile when running `mvn clean package`. Updated the method to pass sample arguments as in `RedactImageFile`. Rebuilt successfully.
1 parent 55971b1 commit 205f96e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dlp/src/main/java/dlp/snippets/InspectImageFile.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434

3535
public class InspectImageFile {
3636

37-
public static void inspectString() {
37+
public static void inspectImageFile() {
3838
// TODO(developer): Replace these variables before running the sample.
3939
String projectId = "my-project-id";
40-
String textToInspect = "My name is Gary and my email is gary@example.com";
41-
inspectString(projectId, textToInspect);
40+
String filePath = "path/to/image.png";
41+
inspectImageFile(projectId, filePath);
4242
}
4343

4444
// Inspects the specified image file.

0 commit comments

Comments
 (0)