Mostly LGTM.

http://gwt-code-reviews.appspot.com/1273801/diff/1/6
File
user/src/com/google/gwt/user/client/rpc/core/java/lang/Double_CustomFieldSerializer.java
(right):

http://gwt-code-reviews.appspot.com/1273801/diff/1/6#newcode45
user/src/com/google/gwt/user/client/rpc/core/java/lang/Double_CustomFieldSerializer.java:45:
throws SerializationException {
On 2011/01/17 02:05:46, Miles Chaston wrote:
On 2011/01/10 20:12:52, jat wrote:
> Continuation lines should be indented +4 columns.  You might want to
look in
> eclipse/README.txt to setup eclipse so formatting/etc matches our
style guide.

I will do my best, but I use IntelliJ rather than eclipse.
Is there a way of me testing the formatting by a command-line that
understands
the eclipse formatting?

ant checkstyle will catch some but not all of these.

I asked tobyr to email you settings files for using IntelliJ with GWT.

http://gwt-code-reviews.appspot.com/1273801/diff/1/33
File
user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamWriter.java
(right):

http://gwt-code-reviews.appspot.com/1273801/diff/1/33#newcode288
user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamWriter.java:288:
private static class CustomFieldSerializerHandle {
An alternative to wrapping everything would be to have a single value,
like you do for EMPTY_HANDLE, to indicate that it is known not to extend
CustomFieldSerializer.  It could just be a private implementation of
CustomFieldSerializer that does nothing and is compared against.

That would keep single lookups in the map, while also avoiding wrapper
objects.

http://gwt-code-reviews.appspot.com/1273801/diff/8001/9034#newcode728
user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamWriter.java:728:
continue;
Won't this give a raw type warning?  If so, it should be
CustomFieldSerializer<?> instead.

http://gwt-code-reviews.appspot.com/1273801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to