android Suspicious method call; should probably call "draw" rather than "onDraw"

ADT 에서 항목 알림 가 져 오기:
Suspicious method call; should probably call "draw" rather than"onDraw"
  코드 를 보 는 데 문제 가 없 었 습 니 다. 마지막 으로 onDraw -- > Fix 를 수 정 했 습 니 다.onDraw. 오류 제거.
참고:
http://stackoverflow.com/questions/19124296/android-ondraw-is-a-suspicous-method-call/21311875#21311875
그 중에서 언급 된 것 은:
By convention, methods from Android API named like  On***  should not be called directly by your code, but only by Android OS itself. I hope, someone will tell you what to use instead of it in this situation... For the performance: if performance can become a problem, why don't you use OpenGL? (or a library that uses OpenGL)
http://stackoverflow.com/questions/14865434/override-ondraw-or-draw
   또 다른 질문, 인용: import org. jetbrains. annotations. NotNull;
   해결 방법 은 코드 에 표 시 된 것 을 없 애 는 것 입 니 다. @Nullable and @NotNull 
참고:
http://stackoverflow.com/questions/19975022/org-jetbrains-what-is-it
@Nullable and @NotNull annotations introduced in IntelliJ IDEA for catching NullPointerException's (NPE's) through the Constant Conditions & Exceptions and @Nullable problem inspections. You canDownload last version here.

좋은 웹페이지 즐겨찾기