Skip to content

Commit df1d698

Browse files
committed
Fix unintentional toString.
1 parent ff76253 commit df1d698

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dlp/src/main/java/dlp/snippets/InspectFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static void inspectFile(String projectId, String filePath, String fileTyp
8080
System.out.println("Findings: " + response.getResult().getFindingsCount());
8181
for (Finding f : response.getResult().getFindingsList()) {
8282
System.out.println("\tQuote: " + f.getQuote());
83-
System.out.println("\tInfo type: " + f.getInfoType());
83+
System.out.println("\tInfo type: " + f.getInfoType().getName());
8484
System.out.println("\tLikelihood: " + f.getLikelihood());
8585
}
8686
} catch (Exception e) {

dlp/src/main/java/dlp/snippets/InspectString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static void inspectString(String projectId, String textToInspect) {
7575
System.out.println("Findings: " + response.getResult().getFindingsCount());
7676
for (Finding f : response.getResult().getFindingsList()) {
7777
System.out.println("\tQuote: " + f.getQuote());
78-
System.out.println("\tInfo type: " + f.getInfoType());
78+
System.out.println("\tInfo type: " + f.getInfoType().getName());
7979
System.out.println("\tLikelihood: " + f.getLikelihood());
8080
}
8181
} catch (Exception e) {

0 commit comments

Comments
 (0)