Skip to content

Commit 0eff84c

Browse files
committed
Restore protected contentTypeLocked (deprecated) for binary compatibility and prefer helper methods
1 parent d506ef6 commit 0eff84c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/src/main/java/org/asynchttpclient/RequestBuilderBase.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ public abstract class RequestBuilderBase<T extends RequestBuilderBase<T>> {
9494
protected ChannelPoolPartitioning channelPoolPartitioning = ChannelPoolPartitioning.PerHostChannelPoolPartitioning.INSTANCE;
9595
protected NameResolver<InetAddress> nameResolver = DEFAULT_NAME_RESOLVER;
9696
// Flag to track if Content-Type was explicitly set by user (should not be modified)
97-
private boolean contentTypeLocked;
97+
// Keep this field protected for binary compatibility with subclasses compiled
98+
// against earlier versions that may have accessed the field directly. New
99+
// code should use the doContentTypeLock/resetContentTypeLock/isContentTypeLocked
100+
// API instead.
101+
@Deprecated
102+
protected boolean contentTypeLocked;
98103

99104
/**
100105
* Mark the Content-Type header as explicitly set by the user. When locked, the

0 commit comments

Comments
 (0)