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

Support ea versions of Java #784

Merged
merged 3 commits into from
Aug 3, 2022
Merged

Support ea versions of Java #784

merged 3 commits into from
Aug 3, 2022

Conversation

j-baker
Copy link
Contributor

@j-baker j-baker commented Aug 3, 2022

I received the error message:

Could not parse sdk version: 19-ea

java.lang.NumberFormatException: For input string: "19-ea"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseInt(Integer.java:668)
	at java.base/java.lang.Integer.parseInt(Integer.java:786)
	at com.palantir.javaformat.intellij.FormatterProvider.parseSdkJavaVersion(FormatterProvider.java:133)
	at java.base/java.util.Optional.map(Optional.java:260)
	at com.palantir.javaformat.intellij.FormatterProvider.getSdkVersion(FormatterProvider.java:120)
	at com.palantir.javaformat.intellij.FormatterProvider.get(FormatterProvider.java:57)

and this seems like it'll fix that.

I received the error message:

```
Could not parse sdk version: 19-ea

java.lang.NumberFormatException: For input string: "19-ea"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseInt(Integer.java:668)
	at java.base/java.lang.Integer.parseInt(Integer.java:786)
	at com.palantir.javaformat.intellij.FormatterProvider.parseSdkJavaVersion(FormatterProvider.java:133)
	at java.base/java.util.Optional.map(Optional.java:260)
	at com.palantir.javaformat.intellij.FormatterProvider.getSdkVersion(FormatterProvider.java:120)
	at com.palantir.javaformat.intellij.FormatterProvider.get(FormatterProvider.java:57)
```

and this seems like it'll fix that.
@changelog-app
Copy link

changelog-app bot commented Aug 3, 2022

Generate changelog in changelog/@unreleased

Type
See change types. Select one:

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Support ea versions of Java

Check the box to generate changelog(s)

  • Generate changelog entry

@@ -27,6 +28,9 @@
import com.palantir.javaformat.bootstrap.BootstrappingFormatterService;
import com.palantir.javaformat.java.FormatterService;
import com.palantir.logsafe.Preconditions;
import org.slf4j.Logger;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

PJF made this change.

@bulldozer-bot bulldozer-bot bot merged commit 02d0946 into develop Aug 3, 2022
@bulldozer-bot bulldozer-bot bot deleted the support_ea branch August 3, 2022 14:06
@svc-autorelease
Copy link
Collaborator

Released 2.26.0

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.

4 participants