From bdf7c302fd196ec85bf4ee3d2f218da785a4e342 Mon Sep 17 00:00:00 2001 From: KSGRelewise <119578211+KSGRelewise@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:30:47 +0200 Subject: [PATCH] Changed to not generate extra semicolon. --- Generator/JavaWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Generator/JavaWriter.cs b/Generator/JavaWriter.cs index 7512460..ba25975 100644 --- a/Generator/JavaWriter.cs +++ b/Generator/JavaWriter.cs @@ -115,6 +115,6 @@ parameterType.GenericTypeArguments is [var elementType] public string ValueSetter(Type toType, string toName, Type fromType, string fromName) => (toType, fromType) switch { { fromType: { IsArray: true }, toType: { IsGenericType: true } generic } when generic.GetGenericTypeDefinition() == typeof(List<>) => $"{toName} = new ArrayList<>(Arrays.asList({fromName}));", - _ => $"{toName} = {fromName};" + _ => $"{toName} = {fromName}" }; }