Skip to content

Commit

Permalink
[SDK-611] Jersey SizeOverrideWriter no longer removes the ThreadLocal…
Browse files Browse the repository at this point in the history
… entitySize on first call to getSize() - this was causing obscure bugs in downstream clients when they implemented automatic retry logic
  • Loading branch information
Stu Arnett committed Aug 5, 2022
1 parent dba2653 commit ac2343c
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotat
public long getSize(T t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
Long size = entitySize.get();
if (size != null) {
entitySize.remove();
return size;
}
return delegate.getSize(t, type, genericType, annotations, mediaType);
Expand Down

0 comments on commit ac2343c

Please sign in to comment.