Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excavator: Format Java files #311

Closed
wants to merge 1 commit into from
Closed

Conversation

svc-excavator-bot
Copy link
Collaborator

excavator is a bot for automating changes across repositories.

Changes produced by the roomba/format check.

To enable or disable this check, please contact the maintainers of Excavator.

endpointName,
ImmutableMap.of(
"http",
"GET /" + endpointName + "/{index}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a regression @dansanduleac

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be hitting some obscure edge case that tries to assert that N/2+1 rows have the same "kind" of tree in the AST.
The values here seem to be

  • Kind.PLUS (BinaryTree of + operations)
  • Kind.VARIABLE
  • Kind.METHOD_INVOCATION

https://github.com/palantir/palantir-java-format/blob/fc94362438d9450b2fefe29315e5ea687bd93215/palantir-java-format/src/main/java/com/palantir/javaformat/java/JavaInputAstVisitor.java#L3222-L3226

I honestly don't see much reason for this kind of heuristic, so it might make sense to remove it.

@dansanduleac
Copy link
Contributor

Putting do not merge until we address the issues with the map arguments being split

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants