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

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

Issue 396063006: Mojo: Always suffix int literals with L in generated Java bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -1L Created 6 years, 5 months 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
Index: mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl b/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl
index fcab2c6fdea9e249cd398348ed168b2c53ee9568..db193e29a32ec47574efce04549e75bebd3fed4c 100644
--- a/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl
@@ -1,3 +1,3 @@
{% macro constant_def(constant) %}
-public static final {{constant.kind|java_type}} {{constant|name}} = ({{constant.kind|java_type}}) {{constant.value|expression_to_text}};
+public static final {{constant.kind|java_type}} {{constant|name}} = {{constant|constant_value}};
{% endmacro %}

Powered by Google App Engine
This is Rietveld 408576698