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

Reformatting unnecessarily removes space after [] #1258

Closed
monrealis opened this issue May 13, 2021 · 1 comment
Closed

Reformatting unnecessarily removes space after [] #1258

monrealis opened this issue May 13, 2021 · 1 comment

Comments

@monrealis
Copy link

import spock.lang.Specification

class MySpec extends Specification {
    def "test"() {
        expect:
        [] == []
    }
}

gets reformatted as

import spock.lang.Specification

class MySpec extends Specification {
    def "test"() {
        expect:
        []== []
    }
}

There's no reason why space after first [] should disappear.
Eclipse Groovy Plugin Version: 4.0.0.v202012170419-e2012
Eclipse version: Version: 2020-12 (4.18.0), Build id: 20201210-1552

May be related: #1219

@eric-milles
Copy link
Member

Can you try with the latest snapshot distribution? I am not able to recreate.

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

No branches or pull requests

2 participants