Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Method/Field sorting (a-z, grouped by visibility)#6

@passsy

Description

@passsy

All methods and field of the AOSP source code are sorted alphabetically. This ends discussions about the "correct" order of functions. It also reduces merge conflicts because new methods/fields will be added at the correct place instead of the end of a class.

We improved this even further by grouping methods and fields by visibility. This means that public methods are sorted above protected, package private and private methods. Each group is sorted alphabetically. This moves implementation details to the bottom and public API to the top.

survey results

Our developer survey showed that our developers want to keep the method sorting. Especially the grouping by visibility, we use for years, is the favorite.

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