google-code-export / protostuff

Automatically exported from code.google.com/p/protostuff
Apache License 2.0
1 stars 1 forks source link

Merge method for json protobuf classes #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please add 'merge' something like that

message_static_method_merge(message, options) ::= <<
public static native <message.name> merge(<message.name> a, <message.name> b) 
/*-{
        var key, value;
        for (key in b) {
            value = b[key];
            if (value != null) {
                a[key] = value;
            }
        }
        return a;
}-*/;
>>

Original issue reported on code.google.com by nordlig....@gmail.com on 13 Apr 2011 at 12:00

GoogleCodeExporter commented 9 years ago
Added at rev 1322.
Thanks

Original comment by david.yu...@gmail.com on 27 Jun 2011 at 2:24