Bugfix
This commit is contained in:
parent
ee9ec179d7
commit
efdbbcdc9b
2
pom.xml
2
pom.xml
@ -249,7 +249,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>it.cavallium</groupId>
|
<groupId>it.cavallium</groupId>
|
||||||
<artifactId>data-generator-runtime</artifactId>
|
<artifactId>data-generator-runtime</artifactId>
|
||||||
<version>1.0.76</version>
|
<version>1.0.77</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
@ -1374,12 +1374,10 @@ public class SourcesGenerator {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
deserializeMethod.addStatement(
|
deserializeMethod.addStatement(
|
||||||
"$T upgraded = ($T) " + dataUpgraderFieldName + ".upgrade(($T) $$field$$"
|
"$$field$$" + (currentVarNumber.getInt(upgradeDataTransformation.from) + 1) + "$$"
|
||||||
|
+ upgradeDataTransformation.from + " ($T) " + dataUpgraderFieldName + ".upgrade(($T) $$field$$"
|
||||||
+ currentVarNumber.getInt(upgradeDataTransformation.from) + "$$"
|
+ currentVarNumber.getInt(upgradeDataTransformation.from) + "$$"
|
||||||
+ upgradeDataTransformation.from + ")", toType, toTypeBoxed, fromTypeBoxed);
|
+ upgradeDataTransformation.from + ")", toType, toTypeBoxed, fromTypeBoxed);
|
||||||
deserializeMethod.addStatement(
|
|
||||||
"$$field$$" + (currentVarNumber.getInt(upgradeDataTransformation.from) + 1) + "$$"
|
|
||||||
+ upgradeDataTransformation.from + " = upgraded");
|
|
||||||
Objects.requireNonNull(currentTransformedFieldTypes.remove(
|
Objects.requireNonNull(currentTransformedFieldTypes.remove(
|
||||||
upgradeDataTransformation.transformClass + "." + upgradeDataTransformation.from));
|
upgradeDataTransformation.transformClass + "." + upgradeDataTransformation.from));
|
||||||
currentTransformedFieldTypes.put(
|
currentTransformedFieldTypes.put(
|
||||||
|
Loading…
Reference in New Issue
Block a user