Skip to content

Minor IDE warnings clean up#2389

Merged
tatu-at-datastax merged 2 commits intomainfrom
tatu/warnings-cleanup
Feb 12, 2026
Merged

Minor IDE warnings clean up#2389
tatu-at-datastax merged 2 commits intomainfrom
tatu/warnings-cleanup

Conversation

@tatu-at-datastax
Copy link
Contributor

What this PR does:

Fixes (most) IDE warnings for a package.

Which issue(s) this PR fixes:
N/A

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@tatu-at-datastax tatu-at-datastax self-assigned this Feb 11, 2026
@tatu-at-datastax tatu-at-datastax requested a review from a team as a code owner February 11, 2026 23:26
List<String> cassandraEndPoints();

/** Cassandra port (when type is {@link DatabaseType#CASSANDRA}) */
@Nullable
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Primitives can never be null

* defaults to 100
*/
public static final int DEFAULT_MAX_DOCUMENT_INSERT_COUNT = 100;
int DEFAULT_MAX_DOCUMENT_INSERT_COUNT = 100;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interfaces can only have public members and only static fields.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

📉 Unit Test Coverage Delta vs Main Branch

Metric Value
Main Branch 50.27%
This PR 50.26%
Delta 🔴 -0.02%
⚠️ Coverage decreased

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

ConsistencyLevel serialConsistency();

/**
* @return Settings for the consistency level.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Invalid Javadoc; @return only for methods, not classes.

// TODO: SOME DOCUMENTATION FOR WHAT THIS IS MEANT TO DO!!!
public interface EmbeddingProvidersConfig {

// TODO: WHAT IS THE KEY FOR THIS MAP ?????
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not removed, reordered after "custom" section.

}
}

@ConfigMapping(prefix = "stargate.jsonapi.custom.embedding")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not removed, moved next to custom() method

final AtomicBoolean moreData = new AtomicBoolean(false);
final String delete = buildDeleteQuery();
AtomicInteger totalCount = new AtomicInteger(0);
final int retryAttempt = retryLimit - 2;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unused.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

📉 Integration Test Coverage Delta vs Main Branch (dse69-it)

Metric Value
Main Branch 70.73%
This PR 70.71%
Delta 🔴 -0.01%
⚠️ Coverage decreased

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

Integration Test Coverage Report (dse69-it)

Overall Project 70.71% -0.02% 🍏
Files changed 88.56% 🍏

File Coverage
CountCollectionOperation.java 100% 🍏
ReadDocument.java 100% 🍏
ModelProvider.java 100% 🍏
ExpressionBuilder.java 97.55% 🍏
DeleteCollectionOperation.java 95.66% 🍏
ReadAndUpdateCollectionOperation.java 95.36% 🍏
ServiceConfigStore.java 93.41% 🍏
InsertCollectionOperation.java 91.76% 🍏
VectorizeConfigValidator.java 88.83% 🍏
FindCollectionOperation.java 88.32% -1.07% 🍏
FindEmbeddingProvidersCommand.java 85.71% 🍏
CollectionDriverExceptionHandler.java 83.53% 🍏
CollectionInsertAttempt.java 80.56% 🍏
UpdateCollectionOperationPage.java 80.23% 🍏
CollectionReadOperation.java 80.07% -0.66% 🍏
EmbeddingProvidersConfig.java 78.51% 🍏
CreateCollectionOperation.java 72.71% -0.82%
EmbeddingProviderFactory.java 57.47% 🍏
EmbeddingProvider.java 41.21% 🍏
EmbeddingProvidersConfigProducer.java 11.17% 🍏
ValidateCredentials.java 4.29% 🍏
EmbeddingGatewayClient.java 0% 🍏
AzureOpenAIEmbeddingProvider.java 0% 🍏

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

📉 Integration Test Coverage Delta vs Main Branch (hcd-it)

Metric Value
Main Branch 72.48%
This PR 72.47%
Delta 🔴 -0.01%
⚠️ Coverage decreased

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

Copy link
Contributor

@amorton amorton left a comment

Choose a reason for hiding this comment

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

looks good, just some nit picks

FailFastInsertException failFastInsertException = (FailFastInsertException) e;
return failFastInsertException.result;
})
.recoverWithItem(e -> e.result)
Copy link
Contributor

Choose a reason for hiding this comment

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

super nit pick: would look nicer if was

.onFailure(FailFastInsertException.class)
.recoverWithItem(FailFastInsertException::result)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Matter of preference I guess... that one is longer :)
Will change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmmmh. For some reason, that version won't compile. Not sure how/why.

@tatu-at-datastax tatu-at-datastax merged commit 2c22e06 into main Feb 12, 2026
3 checks passed
@tatu-at-datastax tatu-at-datastax deleted the tatu/warnings-cleanup branch February 12, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants