groovy-dev mailing list archives

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

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.



Peter Ledbrook
t: @pledbrook

View raw message