Skip to content

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.

…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