Skip to content

fix: [VertexAI] Simplify VertexAI with Suppliers.memorize and avoid accessing private members in tests.#10694

Merged
ZhenyiQ merged 1 commit intomainfrom
copybara_624303836
Apr 17, 2024
Merged

fix: [VertexAI] Simplify VertexAI with Suppliers.memorize and avoid accessing private members in tests.#10694
ZhenyiQ merged 1 commit intomainfrom
copybara_624303836

Conversation

@copybara-service
Copy link
Contributor

@copybara-service copybara-service bot commented Apr 12, 2024

fix: Simplify VertexAI with Suppliers.memorize and avoid accessing private members in tests.

  • Implement lazy init using Suppliers.memorize instead of an explicit lock.
  • Add a newBuilder method in VertexAI.
  • Updates unit tests to avoid accessing private fields in VertexAI.

@copybara-service copybara-service bot requested a review from a team as a code owner April 12, 2024 22:18
@copybara-service copybara-service bot requested a review from a team April 12, 2024 22:18
…ivate members in tests.

  - Implement lazy init using Suppliers.memorize instead of an explicit lock.
  - Add a newBuilder method in VertexAI.
  - Updates unit tests to avoid accessing private fields in VertexAI.

PiperOrigin-RevId: 624303836
@ZhenyiQ ZhenyiQ changed the title fix: Simplify VertexAI with Suppliers.memorize and avoid accessing private members in tests. fix: [VertexAI] Simplify VertexAI with Suppliers.memorize and avoid accessing private members in tests. Apr 17, 2024
@ZhenyiQ ZhenyiQ merged commit 7bdfa55 into main Apr 17, 2024
@ZhenyiQ ZhenyiQ deleted the copybara_624303836 branch April 17, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants