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

Formatting preferences for Java contains bad sample code #5023

Closed
swpalmer opened this issue Nov 28, 2022 · 0 comments · Fixed by #5028
Closed

Formatting preferences for Java contains bad sample code #5023

swpalmer opened this issue Nov 28, 2022 · 0 comments · Fixed by #5028
Labels
kind:bug Bug report or fix

Comments

@swpalmer
Copy link
Contributor

Apache NetBeans version

Apache NetBeans 16 release candidate

What happened

In preferences/settings under Editor, Formatting, language Java, category Spaces:

The sample code used has a misplaced closing brace. Instead of closing the ‘meth’ method it is after the following “add” method, ending the example with a double “} }” on the same line.

How to reproduce

Open the preferences/settings dialog. Those "Editor", then "Formatting". Select language "Java", category "Spaces". Observer the sample code in the preview area.

Did this work correctly in an earlier version?

No / Don't know

Operating System

macOS 13.1

JDK

JDK 17.0.5

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

Always

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

@swpalmer swpalmer added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Nov 28, 2022
@mbien mbien removed the needs:triage Requires attention from one of the committers label Nov 28, 2022
Chris2011 pushed a commit to Chris2011/netbeans that referenced this issue Dec 15, 2022
pepness pushed a commit to pepness/incubator-netbeans that referenced this issue Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants