You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by GitBox <gi...@apache.org> on 2019/11/17 13:48:15 UTC

[GitHub] [httpcomponents-core] garydgregory commented on a change in pull request #161: EntityUtils clean ups and internal refactoring

garydgregory commented on a change in pull request #161: EntityUtils clean ups and internal refactoring
URL: https://github.com/apache/httpcomponents-core/pull/161#discussion_r347137581
 
 

 ##########
 File path: httpcore5/src/main/java/org/apache/hc/core5/http/io/entity/EntityUtils.java
 ##########
 @@ -97,6 +97,11 @@ public static void consume(final HttpEntity entity) throws IOException {
         }
     }
 
+    private static int getCheckedContentLength(final HttpEntity entity) {
+        final int contentLength = (int) Args.checkContentLength(entity);
 
 Review comment:
   @ok2c I moved the checks to the start of methods. 
   
   @michael-o I did not add public methods to keep the API surface minimal.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org