[Workspace Model] [IJPL-857] Update codegen according to changes in the WorkspaceEntity.Builder

GitOrigin-RevId: f1bb40fda785119cb2f7064fa60d58640785d267
This commit is contained in:
Alex Plate
2024-03-26 13:42:03 +00:00
committed by intellij-monorepo-bot
parent e710b04569
commit 62ff7ae1e0
3 changed files with 1 additions and 3 deletions
@@ -1,3 +1,3 @@
codegenImplMinorVersion = 10
codegenImplMinorVersion = 11
codegenImplMajorVersion = 5
codegenApiVersion = 3
@@ -45,7 +45,6 @@ fun ObjClass<*>.implWsDataClassCode(): String {
"override fun wrapAsModifiable(diff: ${MutableEntityStorage}): ${WorkspaceEntity.Builder}<$javaFullName>") {
line("val modifiable = $javaImplBuilderName(null)")
line("modifiable.diff = diff")
line("modifiable.snapshot = diff")
line("modifiable.id = createEntityId()")
line("return modifiable")
}
@@ -25,7 +25,6 @@ ${
}
line()
line("this.diff = builder")
line("this.snapshot = builder")
line("addToBuilder()")
line("this.id = getEntityData().createEntityId()")
lineComment("After adding entity data to the builder, we need to unbind it and move the control over entity data to builder")