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}" }; }