Skip to content

Commit

Permalink
Changed to not generate extra semicolon.
Browse files Browse the repository at this point in the history
  • Loading branch information
KSGRelewise committed Aug 12, 2024
1 parent 3906035 commit bdf7c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Generator/JavaWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
};
}

0 comments on commit bdf7c30

Please sign in to comment.