summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjung2012-03-13 14:42:45 (EDT)
committertjung2012-03-13 14:42:45 (EDT)
commit52e5ce352eca85145a761cfd7719a623aa301131 (patch)
tree819d088f3ff3e39c433064f24da7db4a84bedd55
parent715dae19a72fcc64c1bd3551810bf6b5b33419c6 (diff)
downloadorg.eclipse.etrice-52e5ce352eca85145a761cfd7719a623aa301131.zip
org.eclipse.etrice-52e5ce352eca85145a761cfd7719a623aa301131.tar.gz
org.eclipse.etrice-52e5ce352eca85145a761cfd7719a623aa301131.tar.bz2
[generator.java.gen] data class deepCopy changed, replace fixed length with .length
-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 9e702f4..13e64d4 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»