Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2016-10-15 05:41:47 +0000
committerEd Willink2016-10-30 11:37:25 +0000
commit65633f54fa6ac4dc2650a52748ef2b08e7a11960 (patch)
treeb6a3a5de2b2de50161069424948bf1cd1907b5ac
parentba56020b91d0cc0f4391cc2b80b89bfe5eb47654 (diff)
downloadorg.eclipse.qvtd-65633f54fa6ac4dc2650a52748ef2b08e7a11960.tar.gz
org.eclipse.qvtd-65633f54fa6ac4dc2650a52748ef2b08e7a11960.tar.xz
org.eclipse.qvtd-65633f54fa6ac4dc2650a52748ef2b08e7a11960.zip
[unrelated] Support compression of verbose @NonNull references
-rw-r--r--plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCodeGenerator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCodeGenerator.java b/plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCodeGenerator.java
index f178af7fb..6d7c29879 100644
--- a/plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCodeGenerator.java
+++ b/plugins/org.eclipse.qvtd.codegen/src/org/eclipse/qvtd/codegen/qvti/java/QVTiCodeGenerator.java
@@ -35,6 +35,7 @@ import org.eclipse.ocl.examples.codegen.java.CG2JavaPreVisitor;
import org.eclipse.ocl.examples.codegen.java.ImportUtils;
import org.eclipse.ocl.examples.codegen.java.JavaCodeGenerator;
import org.eclipse.ocl.examples.codegen.utilities.CGModelResourceFactory;
+import org.eclipse.ocl.examples.codegen.utilities.CGUtil;
import org.eclipse.ocl.pivot.utilities.ClassUtil;
import org.eclipse.qvtd.codegen.qvti.QVTiCodeGenOptions;
import org.eclipse.qvtd.codegen.qvti.analyzer.QVTiAS2CGVisitor;
@@ -203,7 +204,7 @@ public class QVTiCodeGenerator extends JavaCodeGenerator
public @NonNull String generateClassFile() {
String javaSourceCode2 = javaSourceCode;
if (javaSourceCode2 == null) {
- javaSourceCode = javaSourceCode2 = createClassFileContent();
+ javaSourceCode = javaSourceCode2 = CGUtil.compressJDTannotations(createClassFileContent());
}
return javaSourceCode2;
}

Back to the top