Top "Type-safety" questions

Type safety is the extent to which a language discourages using variables in an unsafe manner, according to the variables' type.

Type safety: Unchecked cast

In my spring application context file, I have something like: <util:map id="someMap" map-class="java.util.HashMap" key-type="…

java spring type-safety unchecked
Generic type conversion FROM string

I have a class that I want to use to store "properties" for another class. These properties simply have a …

c# generics primitive type-safety
The new keyword "auto"; When should it be used to declare a variable type?

Possible Duplicate: How much is too much with C++0x auto keyword Have we (as a community) had enough experience …

c++ c++11 auto type-safety
Type safety: Unchecked cast from Object

I try to cast an object to my Action class, but it results in a warning: Type safety: Unchecked cast …

java casting type-safety unchecked
Discriminated union in C#

[Note: This question had the original title "C (ish) style union in C#" but as Jeff's comment informed me, apparently …

c# type-safety discriminated-union
GSON and InstanceCreator issue

I have the following POJOs: public interface Shape { public double calcArea(); public double calcPerimeter(); } public class Rectangle implement Shape { // Various …

java reflection deserialization gson type-safety
When to use const void*?

I have this very simple test function that I'm using to figure out what's going on with const qualifier. int …

c pointers type-safety
How to add ArrayList<String> to JSON Array - keeping type safety in mind

Eclipse displayed a type safety warning and I tried nearly everything to eradicate it (of course suppressing it would be …

java json arraylist type-safety