From 7205ba7448bb8d2551ab7b9e33f0c311960c8874 Mon Sep 17 00:00:00 2001 From: KSGRelewise <119578211+KSGRelewise@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:01:59 +0200 Subject: [PATCH] MERGE --- Generator/JavaTypeWriters/JavaClassWriter.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Generator/JavaTypeWriters/JavaClassWriter.cs b/Generator/JavaTypeWriters/JavaClassWriter.cs index 1e4b824..920d77c 100644 --- a/Generator/JavaTypeWriters/JavaClassWriter.cs +++ b/Generator/JavaTypeWriters/JavaClassWriter.cs @@ -125,20 +125,20 @@ public void Write(IndentedTextWriter writer, Type type, string typeName) if (IsClass(type)) { - javaWriter.SettablePropertiesWriter.Write(writer, ownedProperties); + javaWriter.SettablePropertiesWriter.Write(writer, type, ownedProperties); javaWriter.StaticReadonlyPropertiesWriter.Write(writer, type, staticGetterProperties); javaWriter.CreatorMethodWriter.Write(writer, type, typeName, settableProperties); - javaWriter.PropertyGetterMethodsWriter.Write(writer, ownedProperties); + javaWriter.PropertyGetterMethodsWriter.Write(writer, type, ownedProperties); javaWriter.PropertySetterMethodsWriter.Write(writer, type, typeName, settableProperties, ownedProperties.Select(p => p.propertyName).ToArray()); } else if (IsReadonlyStruct(type)) { - javaWriter.SettablePropertiesWriter.Write(writer, gettableProperties); + javaWriter.SettablePropertiesWriter.Write(writer, type, gettableProperties); javaWriter.StaticReadonlyPropertiesWriter.Write(writer, type, staticGetterProperties); javaWriter.CreatorMethodWriter.Write(writer, type, typeName, gettableProperties); - javaWriter.PropertyGetterMethodsWriter.Write(writer, gettableProperties); + javaWriter.PropertyGetterMethodsWriter.Write(writer, type, gettableProperties); javaWriter.PropertySetterMethodsWriter.Write(writer, type, typeName, gettableProperties, gettableProperties.Select(p => p.propertyName).ToArray()); }