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