You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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 aboveprotected
, package private andprivate
methods. Each group is sorted alphabetically. This moves implementation details to the bottom and public API to the top.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.
The text was updated successfully, but these errors were encountered: