# HG changeset patch
# User wleggette
# Date 1241673266 18000
# Node ID 0540c66e9de4596f52f6efd968f94a8bce70db6b
# Parent 7d90afb34b6694ea8fb8ad1d2a273d5d6500a24e
Removed some unnecessary casts from generated code.
diff -r 7d90afb34b66 -r 0540c66e9de4
src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java
--- a/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java
Thu May 07 00:10:11 2009 -0500
+++ b/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java
Thu May 07 00:14:26 2009 -0500
@@ -2204,7 +2204,7 @@
startBlock();
emitImplementationPreamble();
emitGetTarget(setIdentifier, identifier, isAttr, "i",
THROW_EXCEPTION, xtype);
- emit("return (" + xtype + ")target;");
+ emit("return target;");
emitImplementationPostamble();
endBlock();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]