fix java equality
Added comments about genericism/type safety and Go