当然,您并不希望所有的注释类型都具有这种行为(因此默认值是不 继承的)。比如,TODO 注释就不会(也不应该)被传播。
Of course, you don't really want this behavior on all your annotation types (that's why the default is not to inherit); for example, the TODO annotation wouldn't (and shouldn't) be propagated.
当然,您并不希望所有的注释类型都具有这种行为(因此默认值是不 继承的)。比如,TODO 注释就不会(也不应该)被传播。
Of course, you don't really want this behavior on all your annotation types (that's why the default is not to inherit); for example, the TODO annotation wouldn't (and shouldn't) be propagated.
应用推荐