From 0bcae2afe084f6765c3c51a783174063eb09d7e3 Mon Sep 17 00:00:00 2001 From: dfirova <93149631+dfirova@users.noreply.github.com> Date: Tue, 20 Sep 2022 02:49:20 +0300 Subject: [PATCH] fix(samples): updating both json files. (#540) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(samples): updating both json files. * pr fix: fixed test. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-retail/README.md | 4 ++-- .../src/main/java/events/setup/UpdateUserEventsJson.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-retail/README.md b/java-retail/README.md index 37bf83d1750f..cc42822743ac 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.4.0' +implementation 'com.google.cloud:google-cloud-retail:2.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.5.0" ``` ## Authentication diff --git a/java-retail/samples/interactive-tutorials/src/main/java/events/setup/UpdateUserEventsJson.java b/java-retail/samples/interactive-tutorials/src/main/java/events/setup/UpdateUserEventsJson.java index e1fd5590338f..99c31edf15f3 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/events/setup/UpdateUserEventsJson.java +++ b/java-retail/samples/interactive-tutorials/src/main/java/events/setup/UpdateUserEventsJson.java @@ -29,10 +29,10 @@ public class UpdateUserEventsJson { public static void main(String[] args) throws IOException { - // TODO(developer): Replace these variables before running the sample. String filePath = "src/main/resources/user_events.json"; - + String invalidFilePath = "src/main/resources/user_events_some_invalid.json"; updateEventsTimestamp(filePath); + updateEventsTimestamp(invalidFilePath); } public static void updateEventsTimestamp(String jsonFile) throws IOException {