Skip to content

Add toString() to Show Fixes for type declaration #1903

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

Merged
merged 2 commits into from
Oct 15, 2021

Conversation

CsCherrYY
Copy link
Contributor

tostring

Part of redhat-developer/vscode-java#2057

Signed-off-by: Shi Chen [email protected]

@fbricon
Copy link
Contributor

fbricon commented Oct 13, 2021

test this please

@fbricon
Copy link
Contributor

fbricon commented Oct 13, 2021

Build fails:

java.lang.AssertionError: expected:<0> but was:<1>
at org.eclipse.jdt.ls.core.internal.correction.RedundantInterfaceQuickFixTest.testIgnoreRedundantSuperinterface(RedundantInterfaceQuickFixTest.java:86)

Signed-off-by: Shi Chen <[email protected]>
@CsCherrYY
Copy link
Contributor Author

There is a size assertion in https://github.com/eclipse/eclipse.jdt.ls/blob/d373ad9a158bc2e64c0d3cf9a3780fc47315168c/org.eclipse.jdt.ls.tests/src/org/eclipse/jdt/ls/core/internal/correction/RedundantInterfaceQuickFixTest.java#L86

which limits the source actions. From the test purpose, I just replace this assertion with a notExist assertion towards the RedundantSuperinterface.

@testforstephen testforstephen merged commit ac16a04 into eclipse-jdtls:master Oct 15, 2021
@testforstephen testforstephen added this to the Mid October 2021 milestone Oct 15, 2021
@testforstephen
Copy link
Contributor

Tried it, works well. It's a minor improvement to UX, it's safe to add to Mid Oct. release.

@CsCherrYY CsCherrYY deleted the cs-tostring branch November 8, 2021 02:15
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.

3 participants