-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(job): delete old region tag update_job_with_field_mask #9940
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -130,7 +130,6 @@ public static Job updateJob(String jobName, Job jobToBeUpdated) throws IOExcepti | |||||||||||||||||||||||
// [END job_update_job] | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
// [START job_update_job_with_field_mask] | ||||||||||||||||||||||||
// [START update_job_with_field_mask] | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
minherz marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
/** Update a job. */ | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is a public method, it should have a Javadoc comment explaining its purpose, parameters, and return value, per the Google Java Style Guide. I'm recommending this change to adhere to the Google Java Style Guide. Adding clear documentation improves the maintainability and understandability of the code.
Suggested change
|
||||||||||||||||||||||||
public static Job updateJobWithFieldMask(String jobName, String fieldMask, Job jobToBeUpdated) | ||||||||||||||||||||||||
|
@@ -147,7 +146,6 @@ public static Job updateJobWithFieldMask(String jobName, String fieldMask, Job j | |||||||||||||||||||||||
throw e; | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
// [END update_job_with_field_mask] | ||||||||||||||||||||||||
// [END job_update_job_with_field_mask] | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
minherz marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
// [START job_delete_job] | ||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the redundant tag has been removed, it's a good opportunity to add a Javadoc comment explaining the purpose of the
updateJobWithFieldMask
method. This improves code clarity and maintainability, aligning with the Google Java Style Guide's recommendation for clear and concise comments.