Skip to content

fix(retail): add region tag for Java - Update WriteUserEvent.java #10110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

package events;

// [START retail_write_user_event]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In accordance with the project's Sample Format Guide, region tags should typically be placed after import statements. The guide specifies: 'Do not include package or import statements within a region tag unless absolutely necessary.'

To align with this best practice, please consider moving the [START retail_write_user_event] tag to a new line after all import statements and before the public class WriteUserEvent declaration. This will improve consistency across the samples.

import static setup.SetupCleanup.purgeUserEvent;

import com.google.cloud.ServiceOptions;
Expand Down Expand Up @@ -78,3 +79,4 @@ public static void writeUserEvent(String defaultCatalog, String visitorId)
purgeUserEvent(visitorId);
}
}
// [END retail_write_user_event]