Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: mojo/public/tools/bindings/generators/java_templates/struct_definition.tmpl

Issue 755313011: Fix java bindings with array of maps. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/js/struct_unittests.js ('k') | mojo/public/tools/bindings/generators/mojom_java_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/java_templates/struct_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/java_templates/struct_definition.tmpl b/mojo/public/tools/bindings/generators/java_templates/struct_definition.tmpl
index cfc66915e92648d2efc718a756657b8323c36801..0abdac421b5c6b55d4eb514bde178307dd9aea4a 100644
--- a/mojo/public/tools/bindings/generators/java_templates/struct_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/java_templates/struct_definition.tmpl
@@ -142,6 +142,7 @@ if (decoder{{level+1}} == null) {
return decode(new org.chromium.mojo.bindings.Decoder(message));
}
+ @SuppressWarnings("unchecked")
public static {{struct|name}} decode(org.chromium.mojo.bindings.Decoder decoder0) {
if (decoder0 == null) {
return null;
@@ -162,6 +163,7 @@ if (decoder{{level+1}} == null) {
return result;
}
+ @SuppressWarnings("unchecked")
@Override
protected final void encode(org.chromium.mojo.bindings.Encoder encoder) {
{% if not struct.bytes %}
« no previous file with comments | « mojo/public/js/struct_unittests.js ('k') | mojo/public/tools/bindings/generators/mojom_java_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698