Hi,

While trying to find the cause for a very odd NPE I noticed that 
Configuration#setCategories() is implemented like this

    public Builder setCategories(Class<?>... categories) {
      toReturn.categories =
          Collections.unmodifiableList(new 
ArrayList<Class<?>>(Arrays.asList(categories)));
      return this;
    }

Could someone explain why there is an explicit creation of the ArrayList 
done there? Both the result of Arrays.asList() and a java.util.ArrayList 
implement
RandomAccess, so for Collections#unmodifiableList() nothing really should 
change there.

Regards,
--
Andreas

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/3cf55482-febb-4bf4-8958-664e4aca4055%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to