Skip to content

Avoid excessive newlines for short variable names with --aospΒ #970

@agrieve

Description

@agrieve

I'm trying this out in chromium codebase, and besides the known-issue of excessive lambda whitespace (issue #19), I'm finding the most jarring thing is odd whitespace for variable assignments.

google-java-format does:

                desc =
                        getResources()
                                .getString(R.string.cablev2_error_ble_permission, packageLabel);

instead of:

                desc = getResources()
                                .getString(R.string.cablev2_error_ble_permission, packageLabel);

I'm guessing it might be because with two space indents, the wrapped line appears under the = sign (which looks less weird), but with four space indent, it looks really odd

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