This problem also occurs with other methods but I am just using ArrayList.contains(Object o)
as an example.
The method appears twice in Eclipse's method suggestions but one of them with a percentage. As far as I can tell it seems to be a percentage unique to that method.
The methods do the same thing as they both have the same name and parameters so I have no clue why this was happening.
I also though maybe it was some kind of progress counter for the completion of the method, but this makes no sense if there is one without the percentage there too.
Press ctrl + f for windows computer. Then under FIND, type what you want to find. Then in REPLACE WITH, type in what you want to replace it with. Then click REPLACE ALL.
IntelliSense can speed up your coding by auto-completing your words as you type, lets say you have aVeryLongVariable in your code, as soon as you start typing aV, a box will pop-up with the suggestions for auto-completion, you can either continue typing or just press enter and your variable will be auto-completed.
Go to Preferences -> Java -> Editor -> Content Assist -> Advanced
To see no duplicates in your suggestions, have the assist list checked as shown below.
(Tested in Eclipse - Kepler Version)
If you have checked "Java Type Proposals" and "Java Non-Type Proposals" then you will see duplicates in your suggestions.
You have Code Recommenders installed. The proposal with percentage is coming from that, and the proposal without the percentage is coming from JDT.
Essentially there are more than one completion engines installed - see Preferences > Java > Editor > Content Assist. The same method is being offered by more than one engine. While this explains why the duplicates are there, I do not have a workaround or a solution in mind.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With