News for hackers. Stuff that matters.
Re:Java 18 / JDK 18: General Availability by dfee on Tuesday March 22, 2022 @11:27AM (#30767242)
Definitely an issue in 8. My hack is to call everything an `int`, write the statement, and go back and let IntelliJ handle the proper name, adding the import, etc.

I understand though, that in more recent versions of Java this is taken care of for you.

Re:Java 18 / JDK 18: General Availability by matsemann on Tuesday March 22, 2022 @11:51AM (#30767579)
Why not just write the statement and write `.var`? Like if you write

myService.getSomething().var

and press tab, it will autocomplete it to

Something something = myService.getSomething()

Re:Java 18 / JDK 18: General Availability by dfee on Tuesday March 22, 2022 @04:33PM (#30771140)
wow. you just blew my mind. thank you.