You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The space before instanceof is removed in IntelliJ using the Eclipse Code Formatter, i.e. the output is
if (a.get()instanceof B st) {
}
With Eclipse 2020-06 this does not happen.
As far as I can tell no setting in Eclipse or IntelliJ has influence on the output.
Without the st at the end, the formatting is correct.
Paste information about IDE and OS (it can be copied from Help | About dialog).
Tested on Arch Linux and Windows.
IntelliJ IDEA 2022.1.2 (Ultimate Edition)
Build #IU-221.5787.30, built on May 31, 2022
Licensed to CQSE GmbH / David Baum
You have a perpetual fallback license for this version.
Subscription is active until August 17, 2023.
Runtime version: 11.0.15+10-b2043.56 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.18.1-arch1-1
GC: G1 Young Generation, G1 Old Generation
Memory: 8092M
What steps will reproduce the issue?
Format the following code.
What is the expected result?
Nothing should change.
What happens instead?
The space before
instanceof
is removed in IntelliJ using the Eclipse Code Formatter, i.e. the output isWith Eclipse 2020-06 this does not happen.
As far as I can tell no setting in Eclipse or IntelliJ has influence on the output.
Without the
st
at the end, the formatting is correct.Paste information about IDE and OS (it can be copied from Help | About dialog).
Tested on Arch Linux and Windows.
IntelliJ IDEA 2022.1.2 (Ultimate Edition)
Build #IU-221.5787.30, built on May 31, 2022
Licensed to CQSE GmbH / David Baum
You have a perpetual fallback license for this version.
Subscription is active until August 17, 2023.
Runtime version: 11.0.15+10-b2043.56 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.18.1-arch1-1
GC: G1 Young Generation, G1 Old Generation
Memory: 8092M
Cores: 16
Registry:
debugger.watches.in.variables=false
Non-Bundled Plugins:
org.turbanov.run.configuration.as.action (1.4.5)
com.intellij.plugins.watcher (221.5787.13)
tirke.cupPlugin (1.4)
org.jetbrains.idea.grammar (2021.1.2)
com.google.bamboo.id (1.6.3-203)
com.dubreuia (2.3.0)
com.teamscale.ide.intellij (8.0.0)
Key Promoter X (2022.1.2)
com.majera.intellij.codereview.gitlab (2022.2.1.221)
EclipseCodeFormatter (22.0.203.000.0-Eclipse_2021-09)
intellij.prettierJS (221.5787.15)
com.intellij.plugins.html.instantEditing (221.5787.15)
Pythonid (221.5787.30)
izhangzhihao.rainbow.brackets (6.23)
Kotlin: 221-1.6.21-release-337-IJ5787.30
Current Desktop: KDE
Eclipse:
Eclipse DSL Tools (includes Incubating components)
Version: 2020-06 (4.16.0)
Build id: 20200615-1200
Stacktrace
example_project.zip
The text was updated successfully, but these errors were encountered: