在IntelliJ IDEA中方法是斜体表示什么意思? [英] What means when method is italic in IntelliJ IDEA?

查看:502
本文介绍了在IntelliJ IDEA中方法是斜体表示什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,IntelliJ IDEA在调用它们时将某些方法显示为斜体:

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

示例:

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

getContext() 是斜体,但是 getAuthentication()不是斜体,这是什么意思?

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

推荐答案

用斜体表示的方法表示该方法是静态方法.

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

这篇关于在IntelliJ IDEA中方法是斜体表示什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆