Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » map.put( becomes map.compute()(map.put( becomes map.compute())
map.put( becomes map.compute() [message #1824365] Tue, 14 April 2020 12:37 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Hi,

in Eclipse 2020-03 (probably before too), if I type map.put(, when I type the (, code completion triggers and the expression becomes s.compute(key, remappingFunction), with "key" highlighted, which is so annoying. Is there a workaround? Bugzilla for this exists?

Re: map.put( becomes map.compute() [message #1824369 is a reply to message #1824365] Tue, 14 April 2020 13:24 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
This has been discussed in several bugs. If you have Mylyn installed then https://bugs.eclipse.org/bugs/show_bug.cgi?id=506804 could be relevant, otherwise see the discussion starting at https://bugs.eclipse.org/bugs/show_bug.cgi?id=547510#c3
Re: map.put( becomes map.compute() [message #1824374 is a reply to message #1824369] Tue, 14 April 2020 15:09 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Thank you Stephan.
Re: map.put( becomes map.compute() [message #1824417 is a reply to message #1824374] Wed, 15 April 2020 06:11 Go to previous messageGo to next message
Julian Honnen is currently offline Julian HonnenFriend
Messages: 2
Registered: January 2020
Junior Member
Which content assists do you have enabled in Preferences > Java > Editor > Content Assist > Advanced?
Re: map.put( becomes map.compute() [message #1826205 is a reply to message #1824417] Tue, 21 April 2020 07:28 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
I have API Tools, Chain Template, e4, Groovy, Groovy Template (I tested without these, since I suspected..) Java Postfix Template Java Proposals (Task Focused), SWT Template, Template

Another annoying mismatch is equals( becomse contentEquals(
Previous Topic:Clickable error messages to console from my program
Next Topic:Is there any way to decompile a .jar file into eclipse PROPERLY?
Goto Forum:
  


Current Time: Fri Apr 26 16:13:42 GMT 2024

Powered by FUDForum. Page generated in 0.03199 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top