Skip to content

Discrepancy between this plugin and running google-java-format jar directly #184

@jduan-highnote

Description

@jduan-highnote

We are using the latest version (2.21.1) of this plugin. On top of that, we also have a git pre-commit hook that uses the google-java-format jar directly on changed files. We use 1.17.0 of the jar, which matches the version used in the pom.xml of this plugin.

However, they produce different results. For example, we have one Java file which has very long literal strings.

  • this plugin doesn't break up those long lines
  • running the jar directly does break them up into shorter lines

How do we make them produce the same result? Thanks!

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