eclipse-jdt / eclipse.jdt.ui

Eclipse Public License 2.0
37 stars 92 forks source link

[code mining] Extra spaces when showing method parameter name hints #1797

Open JanecekPetr opened 3 days ago

JanecekPetr commented 3 days ago

A fresh workspace, a fresh installation of Eclipse for Java,

Version: 2024-09 (4.33.0)
Build id: 20240905-0614
Eclipse Java Development Tools: 3.19.600.v20240903-0240

Parameter name hints enabled: {F146FF7C-2D84-4292-B1FA-6262628D1C30}

There are two extra spaces after the parameter name: {9D91F000-D0E1-4675-9A69-CE708299BECF}

I have no idea where the extra spaces are coming from as the code itself seems to only add one: https://github.com/eclipse-jdt/eclipse.jdt.ui/blob/2886912fd00e7d4f0dc50af8ff17cbde0007a382/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/codemining/JavaMethodParameterCodeMining.java#L31

Windows 11 in Czech locale, Java 23

jukzi commented 3 days ago

Feel free to propose a fix.