groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ledbrook <pe...@cacoethes.co.uk>
Subject Type safety on sum()/getAt()
Date Fri, 09 Oct 2015 07:54:15 GMT
Hi,

I've noticed that @TypeChecked doesn't work so well with typed collections
and the sum() & getAt() methods (perhaps others as well). I had a quick
look at sum() in DefaultGroovyMethods and noticed that it doesn't use
parameterised types, unlike inject() for example.

Would there be any issues with updating sum() and getAt() to work with
parameterised types? The current situation makes using @TypeChecked harder
than it needs to be.

Thanks,

Peter

--
Peter Ledbrook
t: @pledbrook
w: http://www.cacoethes.co.uk/

Mime
View raw message