Skip to content

[pigeon] Remove Object from generics in Java #150385

@stuartmorgan-g

Description

@stuartmorgan-g

We have a bunch of places where we use <Object> a generic type creation in the Java generator, which generates warnings in Android Studio; it can just be <>. Examples include the local variable initialization in toList implementations and wrapError.

We could probably just have a Dart unit test for the generator that asserts no instances of new ArrayList<Object>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions