1

I am using IntelliJ Community Edition ( 2019.2 version ). Since this morning, when I type a method call with parameters and click Alt+Enter, it doesn't show me the option to create the method - I do not know what I may have done that I lost this functionality and have been unable to find out how to get the functionality back. What do I need to do?

Hope there is a solution to this.

@crazycoder - Attaching image enter image description here

Thanks

adbdkb
  • 1,897
  • 6
  • 37
  • 66
  • Please try File | Invalidate Caches | Invalidate and Restart. If the issue persists, attach the screenshot of the IDE window showing where the issue occurs. https://stackoverflow.com/a/43319356/104891 may be the case. – CrazyCoder Oct 11 '19 at 21:53
  • @CrazyCoder - Tried the invalidate and restart. That did not fix it. I have attached what I am getting. Also, I was able to define the getSubdomainToTopicMapping() method earlier in the same class. Not sure what I did to lose the functionality – adbdkb Oct 11 '19 at 23:14
  • There is a syntax issue in the code, try removing `String` in the method arguments as you don't specify the type when calling a method. – CrazyCoder Oct 12 '19 at 02:35
  • That was it. Thanks. Can you put it as an answer so that I can accept it as answer. – adbdkb Oct 12 '19 at 03:01

1 Answers1

0

There is a syntax issue in the code, try removing the String part in the method arguments list as you don't need to specify the type when calling a method.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904