velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Can't acces map values when get() is overriden
Date Fri, 01 Jul 2011 01:43:11 GMT
Mateusz,

On 6/29/2011 10:24 AM, matela wrote:
> public class Params extends HashMap<String, String>
> {
> 	@Override
> 	public String get(Object key)

Shouldn't that be public String get(String key)?

IMO, everything goes to hell when you start using generics in Java. :(

-chris


Mime
View raw message