Originally posted by nimo frey: I use generics, so I allow, that instead of the boolean-value a String-value can be inserted.
The way I interpret this sentence is that you are able to insert both Boolean and String objets as values in the Map, indicating that somehow you're circumventing the compile-time type checking mechanism. You should be getting type safety warnings if that's the case.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Joined: Jun 28, 2008
okay, it works now.
However, I have thought, that generics are not absolutely type-save.