Skip to content

Commit 08ee4a4

Browse files
committed
Revert return type change to avoid linting failure
1 parent 201916f commit 08ee4a4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/VectorIndexTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public void shouldCreateVectorEmbeddingPolicy() {
9494
.setIncludedPaths(ImmutableList.of(includedPath1, includedPath2))
9595
.setVectorIndexes(populateVectorIndexes());
9696

97-
CosmosVectorEmbeddingPolicy cosmosVectorEmbeddingPolicy = new CosmosVectorEmbeddingPolicy()
98-
.setCosmosVectorEmbeddings(populateEmbeddings());
97+
CosmosVectorEmbeddingPolicy cosmosVectorEmbeddingPolicy = new CosmosVectorEmbeddingPolicy();
98+
cosmosVectorEmbeddingPolicy.setCosmosVectorEmbeddings(populateEmbeddings());
9999

100100
CosmosContainerProperties collectionDefinition = new CosmosContainerProperties(UUID.randomUUID().toString(), partitionKeyDef)
101101
.setIndexingPolicy(indexingPolicy)

sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosVectorEmbeddingPolicy.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ public List<CosmosVectorEmbedding> getVectorEmbeddings() {
4444
*
4545
* @param cosmosVectorEmbeddings paths for embeddings along with path-specific settings for the item.
4646
*/
47-
public CosmosVectorEmbeddingPolicy setCosmosVectorEmbeddings(List<CosmosVectorEmbedding> cosmosVectorEmbeddings) {
47+
public void setCosmosVectorEmbeddings(List<CosmosVectorEmbedding> cosmosVectorEmbeddings) {
4848
cosmosVectorEmbeddings.forEach(embedding -> {
4949
checkNotNull(embedding, "Null values are not allowed in cosmosVectorEmbeddings list.");
5050
});
5151
this.cosmosVectorEmbeddings = cosmosVectorEmbeddings;
52-
return this;
5352
}
5453

5554
}

0 commit comments

Comments
 (0)