Skip to content

Commit 2b5a98b

Browse files
jeet1995Copilot
andcommitted
Rename misnamed getCosmosAsyncClientAccessor in CosmosDiagnosticsThresholdsHelper
Rename to getCosmosDiagnosticsThresholdsAccessor() which correctly reflects the return type and initialized class. The old method is kept as a @deprecated delegating alias for binary compatibility. Updated all 3 internal call sites to use the new name. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 51e9932 commit 2b5a98b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/CosmosQueryRequestOptionsBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
public abstract class CosmosQueryRequestOptionsBase<T extends CosmosQueryRequestOptionsBase<?>> implements OverridableRequestOptions {
3232
private final static ImplementationBridgeHelpers.CosmosDiagnosticsThresholdsHelper.CosmosDiagnosticsThresholdsAccessor thresholdsAccessor =
33-
ImplementationBridgeHelpers.CosmosDiagnosticsThresholdsHelper.getCosmosAsyncClientAccessor();
33+
ImplementationBridgeHelpers.CosmosDiagnosticsThresholdsHelper.getCosmosDiagnosticsThresholdsAccessor();
3434

3535
private ConsistencyLevel consistencyLevel;
3636
private ReadConsistencyStrategy readConsistencyStrategy;

sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/CosmosQueryRequestOptionsImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
public final class CosmosQueryRequestOptionsImpl extends CosmosQueryRequestOptionsBase<CosmosQueryRequestOptionsImpl> {
1616
private final static ImplementationBridgeHelpers.CosmosDiagnosticsThresholdsHelper.CosmosDiagnosticsThresholdsAccessor thresholdsAccessor =
17-
ImplementationBridgeHelpers.CosmosDiagnosticsThresholdsHelper.getCosmosAsyncClientAccessor();
17+
ImplementationBridgeHelpers.CosmosDiagnosticsThresholdsHelper.getCosmosDiagnosticsThresholdsAccessor();
1818
private String partitionKeyRangeId;
1919
private Boolean scanInQueryEnabled;
2020
private Boolean emitVerboseTracesInQuery;

sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ImplementationBridgeHelpers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ public static void setCosmosDiagnosticsThresholdsAccessor(final CosmosDiagnostic
15671567
}
15681568
}
15691569

1570-
public static CosmosDiagnosticsThresholdsAccessor getCosmosAsyncClientAccessor() {
1570+
public static CosmosDiagnosticsThresholdsAccessor getCosmosDiagnosticsThresholdsAccessor() {
15711571
if (!cosmosDiagnosticsThresholdsClassLoaded.get()) {
15721572
logger.debug("Initializing CosmosDiagnosticsThresholds...");
15731573
ensureClassInitialized("com.azure.cosmos.CosmosDiagnosticsThresholds");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929
public class CosmosItemRequestOptions {
3030
private final static ImplementationBridgeHelpers.CosmosDiagnosticsThresholdsHelper.CosmosDiagnosticsThresholdsAccessor thresholdsAccessor =
31-
ImplementationBridgeHelpers.CosmosDiagnosticsThresholdsHelper.getCosmosAsyncClientAccessor();
31+
ImplementationBridgeHelpers.CosmosDiagnosticsThresholdsHelper.getCosmosDiagnosticsThresholdsAccessor();
3232

3333
private ConsistencyLevel consistencyLevel;
3434
private ReadConsistencyStrategy readConsistencyStrategy;

0 commit comments

Comments
 (0)