What means when method is italic in IntelliJ IDEA?

风流意气都作罢 提交于 2021-01-26 20:36:40

问题


By default, IntelliJ IDEA shows some of the methods as italic when we call them:

Example:

Authentication auth = SecurityContextHolder.getContext().getAuthentication();

getContext() is italic, but getAuthentication() isn't, what does it mean?


回答1:


A method written in italic indicate that this method is a static method.



来源:https://stackoverflow.com/questions/33894818/what-means-when-method-is-italic-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!