Skip to content

[pigeon] Remove Object from generics in Java #150385

Closed
flutter/packages
#6840

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>.

Activity

  1. added
    platform-androidAndroid applications specifically
    packageflutter/packages repository. See also p: labels.
    p: pigeonrelated to pigeon messaging codegen tool
    P3Issues that are less important to the Flutter project
    on Jun 17, 2024
  2. changed the title [-][pigeon] Remove `Object` from generics[/-] [+][pigeon] Remove `Object` from generics in Java[/+] on Jun 17, 2024
  3. github-actions commented on Aug 26, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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