Skip to content

Commit

Permalink
fix(samples): updating both json files. (#540)
Browse files Browse the repository at this point in the history
* 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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
dfirova and gcf-owl-bot[bot] authored Sep 19, 2022
1 parent 04b551c commit 0bcae2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions java-retail/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0bcae2a

Please sign in to comment.