Enforce warnings in Java

I want a mechanism to manually throw compile - time warnings I'm using it to mark unfinished code, so I can't forget it later@ Deprecated is turned off, but a warning is issued at the caller site, not at the creation site I use eclipse There is #warning in C #

Solution

Why not add a flag in the source code, such as / / todo: or what? Then search the file for all occurrences of todo? You can even have some special signs, such as finishme or something

If there are hundreds of todos in your team's project, you can filter by string Abbreviations in the menu in the upper right corner of your task pane

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>