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 %} |