Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrdoherty committed Dec 1, 2024
1 parent c9b6f34 commit fc3dded
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void filter(ContainerRequestContext context, ContainerResponseContext res
boolean hasResponseBody = responseContext.getEntity() != null;
int httpStatus = responseContext.getStatus();
if (hasResponseBody) {
// pass along the content type and response status to the interceptor to log after response body is written
// pass along the response status to the interceptor to log after response body is written
context.setProperty(HTTP_RESPONSE_STATUS_PROP_KEY, httpStatus);
}
else {
Expand All @@ -207,7 +207,7 @@ public void filter(ContainerRequestContext context, ContainerResponseContext res

@Override
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException {
// get content type and HTTP status passed along by the filter() method, then remove
// get HTTP status passed along by the filter() method, then remove
int httpStatus = (Integer)context.getProperty(HTTP_RESPONSE_STATUS_PROP_KEY);
context.removeProperty(HTTP_RESPONSE_STATUS_PROP_KEY);
Function<String,Object> getAndRemoveProp = toGetAndRemove(context::getProperty, context::removeProperty);
Expand Down

0 comments on commit fc3dded

Please sign in to comment.