michael-o commented on issue #171: Consistency fixes
URL: 
https://github.com/apache/httpcomponents-core/pull/171#issuecomment-569079277
 
 
   > 
   > 
   > > > > If a public API is released in 5.x, we cannot drop it until 6.0, we 
should drop it now.
   > > > 
   > > > 
   > > > @michael-o We do not need to drop it. We can deprecate it and stop 
using it. What I dislike about `Objects` is that hideous `static int 
hash(Object... values)` with an extra array allocation due to vararg signature. 
I would like to upgrade to JRE 8 or 11 and then consider deprecating 
`LangUtils` in favor of `Objects`
   > > 
   > > 
   > > Now I understand, makes sense. How would Java 8 or 11 make it any 
better? Those has methods exist since Java 7.
   > 
   > @michael-o I recall reading that _possibly_ some newer JVMs include a 
special optimization routine specifically for `Objects#hash` but it had no time 
to investigate it.
   
   Alright, will move it out and merge the rest to master.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to