1
在C#在Visual Studio中我可以如何在Android Studio中添加编译器警告?
#warning The following method needs refactoring for clarity
什么是Android的工作室相当于做到这一点?
在C#在Visual Studio中我可以如何在Android Studio中添加编译器警告?
#warning The following method needs refactoring for clarity
什么是Android的工作室相当于做到这一点?
尝试是这样的:@SuppressWarnings("your message")
例如
@SuppressWarnings("your message")
myMethod(){
body;
}
也看这个问题:
How to intentionally cause a custom java compiler warning message?