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 f69f657d31437f7208148938f2853f4347744177..fcab2c6fdea9e249cd398348ed168b2c53ee9568 100644 |
--- a/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl |
+++ b/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl |
@@ -1,5 +1,3 @@ |
-{% from "java_macros.tmpl" import build_default %} |
- |
{% macro constant_def(constant) %} |
-public static final {{constant.kind|java_type}} {{constant|name}} = {{build_default(module, constant.kind, constant.value)|indent(4)}}; |
+public static final {{constant.kind|java_type}} {{constant|name}} = ({{constant.kind|java_type}}) {{constant.value|expression_to_text}}; |
{% endmacro %} |