For converting a integer into an enum (out of a json file), I declared some HashMaps like this:
final static HashMap<Integer, Types> getType = new HashMap<Integer, Types>() {
{
put(1, Types.TYPE1);
put(2, Types.TYPE2);
....
}
};
Now eclipse gives me the following warning:
The serializable class does not declare a static final serialVersionUID field of type long
I already found a pretty good explanation for the error message here. However I don't know how this is with GWT. Does GWT use the SerialVersionUID anywhere, or is it actually deleted by the closur compiler? As far as I see it, it isn't needed.