Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2016-10-04 17:17:12 +0000
committerEd Willink2016-10-05 04:12:42 +0000
commit9c1d1fa7ec96a6d79a9c44da89007ca07237ce3d (patch)
tree0aa53adb0cc48b23449136cb837a3d008851d5a8 /plugins
parent36305b574d5ca90c497b734ee67531a6c461d8e0 (diff)
downloadorg.eclipse.qvtd-9c1d1fa7ec96a6d79a9c44da89007ca07237ce3d.tar.gz
org.eclipse.qvtd-9c1d1fa7ec96a6d79a9c44da89007ca07237ce3d.tar.xz
org.eclipse.qvtd-9c1d1fa7ec96a6d79a9c44da89007ca07237ce3d.zip
[502235] Eliminate localPrefix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCG2JavaVisitor.java17
1 files changed, 5 insertions, 12 deletions
diff --git a/plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCG2JavaVisitor.java b/plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCG2JavaVisitor.java
index 392effdb4..489050cd5 100644
--- a/plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCG2JavaVisitor.java
+++ b/plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCG2JavaVisitor.java
@@ -932,19 +932,12 @@ public class QVTiCG2JavaVisitor extends CG2JavaVisitor<@NonNull QVTiCodeGenerato
else {
js.append("try {\n");
js.pushIndentation(null);
- String savedLocalPrefix = localPrefix;
- try {
- localPrefix = hasMappingClass ? getMappingName(cgMapping) : localPrefix;
- if (!cgBody.isInlined()) {
- cgBody.accept(this);
- }
- js.append("return ");
- js.appendValueName(cgBody);
- js.append(";\n");
- }
- finally {
- localPrefix = savedLocalPrefix;
+ if (!cgBody.isInlined()) {
+ cgBody.accept(this);
}
+ js.append("return ");
+ js.appendValueName(cgBody);
+ js.append(";\n");
js.popIndentation();
js.append("} catch (Throwable e) {\n");
js.pushIndentation(null);

Back to the top