JDK 8 Code Review Request for 5029031 (coll) Collections.checkedQueue(Queue<T>, Class) is missing

Jason Mehrens jason_mehrens at hotmail.com
Mon Oct 3 15:35:51 UTC 2011



> What's about moving
> 
> public boolean equals(Object o) {return o == this || c.equals(o);}
> 
> to CheckedCollection and remove it in CheckedSet (L2394), CheckedList (L2506)
> 
> and
> 
> public int hashCode() {return c.hashCode();}
> 
> to CheckedCollection and remove it in CheckedSet (L2395)
 
That violates the spec of checkedCollection.
 
Jason
 

  		 	   		  


More information about the core-libs-dev mailing list