-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fix lineSpan #193
Fix lineSpan #193
Conversation
Generate changelog in
|
palantir-java-format/src/main/java/com/palantir/javaformat/java/JavaInputAstVisitor.java
Show resolved
Hide resolved
+ 1; | ||
ImmutableRangeMap<Integer, ? extends Input.Token> positionTokenMap = | ||
builder.getInput().getPositionTokenMap(); | ||
Function<Input.Token, Integer> lineNumberAt = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make this an instance method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
…s/linespan-failing-test
Released 0.3.25 |
Before this PR
#192 added a function
lineSpan
that could sometimes throw a NPE.After this PR
==COMMIT_MSG==
Fix lineSpan function to not throw NPE.
==COMMIT_MSG==
Possible downsides?