Skip to content

Commit d482eca

Browse files
author
Stephane Landelle
committed
Mention that RequestBuilder is mutable and not threadsafe, close AsyncHttpClient#238
1 parent 40b84d1 commit d482eca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/src/main/java/com/ning/http/client/RequestBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
/**
2525
* Builder for a {@link Request}.
26+
* Warning: mutable and not thread-safe! Beware that it holds a reference on the Request instance it builds,
27+
* so modifying the builder will modify the request even after it has been built.
2628
*/
2729
public class RequestBuilder extends RequestBuilderBase<RequestBuilder> {
2830

0 commit comments

Comments
 (0)