当前位置:网站首页>@Deprecated action

@Deprecated action

2021-11-25 18:13:49 & Tranquility & amp; Zhiyuan & amp;

 

 

 

Looking at the code today, I found that , I went to check the information , Record :

The short answer is , If a class or method is annotated , Indicates that this method or class is no longer recommended , A strikeout also appears when calling , But it doesn't mean it can't be used , Just say , It is not recommended to use , Because there are better ways to call .

Maybe someone will ask , Why does this annotation appear , Just define a new method when you write it ?

Because in a project , The project is relatively large , More code , And in the subsequent development process , Maybe one of the previous methods is not very reasonable , At this time, we need to add a new method , And the previous method can not be deleted at will , Because it may be called elsewhere , So add this note , It is convenient for developers to call methods later .

版权声明
本文为[& Tranquility & amp; Zhiyuan & amp;]所创,转载请带上原文链接,感谢
https://chowdera.com/2021/11/20211109100216087V.html

随机推荐