Skip to content

Add setting to make new classes package-private instead of public - #3865

Merged
datho7561 merged 1 commit into
eclipse-jdtls:mainfrom
MeherSru:fix-3870-class-template
Aug 13, 2026
Merged

Add setting to make new classes package-private instead of public#3865
datho7561 merged 1 commit into
eclipse-jdtls:mainfrom
MeherSru:fix-3870-class-template

Conversation

@MeherSru

Copy link
Copy Markdown
Contributor

This adds a new setting: java.templates.preferPackagePrivateVisibility
When turned on, new class/interface/record snippets won't add "public" anymore. They'll be package-private instead.

@MeherSru
MeherSru marked this pull request as ready for review August 13, 2026 16:10

@datho7561 datho7561 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like a really helpful addition. The code looks good and works well. Thanks, Meher!

@datho7561

Copy link
Copy Markdown
Contributor

Related to redhat-developer/vscode-java#3870

@datho7561 datho7561 added this to the End of July 2026 milestone Aug 13, 2026
@datho7561
datho7561 merged commit 56b9084 into eclipse-jdtls:main Aug 13, 2026
8 checks passed
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.

2 participants