Skip to content

Fix one of the Android Studio warnings #5996

@nicolas-raoul

Description

@nicolas-raoul

This task is designed as a small, useful task to onboard new users to the codebase who are unsure about what to work on.

Important

Unique constraint to this issue
Multiple pull requests from the same author will not be accepted, unless the refactoring is part of a larger piece of work

Tip

You do not need to be assigned this issue to work on it

Android Studio flags a number of warnings in the project.

If a file which contains these warnings is committed, then Android Studio will warn the author. If the warning was not introduced by the author's commit, then the author is unnecessarily slowed down by having to confirm that they did not introduce more warnings into the codebase (which inevitably leads them to disabling the warning, as they're low value).

The list of warnings can be obtained via:

  • Code -> Inspect Code

Screenshot 2023-02-16 at 21 38 16

The aim of this task is to introduce new contributors to the code with an 'easy' first issue to resolve.

  1. Run Code -> Inspect Code on the solution (it will be slow)
  2. Select one file which has warnings (under the Kotlin header is easiest.- many of the Java warnings are not flagged by the IDE)
  3. Fix all the errors, warnings + weak warnings in the file, automatically if this is offered by the IDE, or manually otherwise.
  4. Send us a pull request. In the pull request's title/description, do not write Fixes #5996 as it would automatically close this whole issue. Instead, write Part of issue #5996.

(Note to core team: Once this issue has been all completed, we can use CI to run Android Studio in headless mode to ensure that the codebase gets to, and stays at 0 warnings.)

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