在 Visual Studio 的 C# 中,我可以用
#warning The following method needs refactoring for clarity
什么是 Android Studio 的等价物?
最佳答案
尝试这样的事情:@SuppressWarnings("your message")
例如
@SuppressWarnings("your message")
myMethod(){
body;
}
另外,看看这个问题:
How to intentionally cause a custom java compiler warning message?
关于android - 如何在 Android Studio 中添加编译器警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20972190/