Skip to content

Remove verbose line for params method invocation #760

@masesdevelopers

Description

@masesdevelopers

Is your feature request related to a problem? Please describe.
The following line

executionStub = $"if ({varArg.Name()}.Length == 0) {executionStub} else {executionStubWithVarArg}";

creates something like

public static Java.Lang.String Format(Java.Lang.String arg0, params object[] arg1)
{
if (arg1.Length == 0) return SExecuteWithSignature<Java.Lang.String>(LocalBridgeClazz, "format", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;", arg0); else return SExecuteWithSignature<Java.Lang.String>(LocalBridgeClazz, "format", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;", arg0, arg1);
}

Describe the solution you'd like
Removes if (arg1.Length == 0) check and replace it with an helper method able to rebuild params of the [I/S]Execute[WithSignature] methods

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions