Re: Is it still preferable to have HashMap over Map in GWT client side code?

2011-09-01 Thread Colin Alworth
In general the compiler will select the most specific type it can - if you write Map map = new HashMap(); it will change that to HashMap map = new HashMap(); as it is clear that the object can only be a HashMap at that location. In other cases it may not be able to make that promotion, but there

Re: Is it still preferable to have HashMap over Map in GWT client side code?

2011-09-01 Thread Blackberet
But does the GWT compiler generate extra code to convert from Map to HashMap? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/1RKYvmZcCV4J. To

Re: Is it still preferable to have HashMap over Map in GWT client side code?

2011-09-01 Thread Paul Robinson
For anything going over the wire via RPC, yes. For anything that stays within the client, it doesn't matter. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsu

Is it still preferable to have HashMap over Map in GWT client side code?

2011-09-01 Thread Blackberet
thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/m2wqarKYDL8J. To post to this group, send email to google-web-toolkit@googlegroups.com. T