TimurMahammadov / google-collections

Automatically exported from code.google.com/p/google-collections
Apache License 2.0
0 stars 0 forks source link

rename Objects.hashCode #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
since Objects.hashCode and Object.hashCode have the same name, it is impervious 
to static 
imports.  plus, it just creates unnecessary ambiguity.  my suggestion would be 
calling it 
hashCodeOf.

Original issue reported on code.google.com by gk5...@gmail.com on 21 May 2008 at 12:14

GoogleCodeExporter commented 9 years ago
I don't believe there is any ambiguity, since without static import it always 
appears
as "Objects.hashCode".  This request amounts to a desire to replace
"Objects.hashCode" with "hashCodeOf" to save six characters in your call site.  
At
this point I'm inclined to leave it as it is, because it's the "right" name and 
is
consistent with Arrays.hashCode().

Original comment by kevin...@gmail.com on 27 May 2008 at 7:16