Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjung2012-03-13 18:42:45 +0000
committertjung2012-03-13 18:42:45 +0000
commit52e5ce352eca85145a761cfd7719a623aa301131 (patch)
tree819d088f3ff3e39c433064f24da7db4a84bedd55 /plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
parent715dae19a72fcc64c1bd3551810bf6b5b33419c6 (diff)
downloadorg.eclipse.etrice-52e5ce352eca85145a761cfd7719a623aa301131.tar.gz
org.eclipse.etrice-52e5ce352eca85145a761cfd7719a623aa301131.tar.xz
org.eclipse.etrice-52e5ce352eca85145a761cfd7719a623aa301131.zip
[generator.java.gen] data class deepCopy changed, replace fixed length with .length
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend')
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
index 9e702f449..13e64d428 100644
--- a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/gen/DataClassGen.xtend
@@ -141,7 +141,7 @@ class DataClassGen {
«IF a.size==0»
copy.«a.name» = «a.name».deepCopy();
«ELSE»
- for (int i=0;i<«a.size»;i++){
+ for (int i=0;i<«a.name».length;i++){
copy.«a.name»[i] = «a.name»[i].deepCopy();
}
«ENDIF»
@@ -149,7 +149,7 @@ class DataClassGen {
«IF a.size==0»
copy.«a.name» = «a.name»;
«ELSE»
- for (int i=0;i<«a.size»;i++){
+ for (int i=0;i<«a.name».length;i++){
copy.«a.name»[i] = «a.name»[i];
}
«ENDIF»

Back to the top