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

Add quickfix for redundant interface #1325

Merged
merged 1 commit into from
Jan 30, 2020
Merged

Conversation

snjeza
Copy link
Contributor

@snjeza snjeza commented Jan 25, 2020

Fixes #438

Signed-off-by: Snjezana Peco [email protected]

@@ -248,6 +250,11 @@ InitializeResult initialize(InitializeParams param) {
capabilities.setWorkspace(wsCapabilities);

result.setCapabilities(capabilities);
if (preferenceManager.getPreferences().getRedundantSuperinterface() != null && !JavaCore.IGNORE.equals(preferenceManager.getPreferences().getRedundantSuperinterface())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer if we kept that preference as part of the default project settings.

/**
* Redundant super interface.
*/
public static final String JAVA_COMPILER_PROBLEM_REDUNDANT_SUPER_INTERFACE = "java.compiler.problem.redundantSuperinterface";
Copy link
Contributor

Choose a reason for hiding this comment

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

please don't expose that

@snjeza
Copy link
Contributor Author

snjeza commented Jan 27, 2020

test this please

@snjeza
Copy link
Contributor Author

snjeza commented Jan 27, 2020

@fbricon I have updated the PR.

@fbricon
Copy link
Contributor

fbricon commented Jan 28, 2020

Can you please restore the tests?

@snjeza
Copy link
Contributor Author

snjeza commented Jan 28, 2020

Can you please restore the tests?

Done.

@fbricon fbricon merged commit ebe7da3 into eclipse-jdtls:master Jan 30, 2020
@fbricon
Copy link
Contributor

fbricon commented Jan 30, 2020

Thanks @snjeza

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

Successfully merging this pull request may close these issues.

Add quickfix for redundant interface
2 participants