Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Annotating a varargs method creates an array-param method #927

@WonderCsabo

Description

@WonderCsabo

Consider the following:

@EActivity
public class MainActivity extends Activity
    @UiThread
    protected void varagsMethod(Object... params) {
        //
    }
}

The generated class will be this:

public class MainActivity_ extends MainActivity
    @Override
    protected void varagsMethod(Object[] params) {
        //
    }
}

This results in the following warning: Varargs methods should only override or be overridden by other varargs methods.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions