Minor lapses and barely - detectable coding errors - such as misaligned pointers or uninitialized variables - can have enormous consequences 一些较小的失误和几乎不被发觉的编码错误比如指针偏差或者变量未初始化可能会带来严重的后果。
One example is a form that includes a badly coded button that always results in a crash when pressed . repetitive crashes occur on a particular schedule 例如一个这样的表单,其中包含一个编码错误的按钮,每当按这个按钮时,都会导致一个可重复的崩溃。
Code analysis tool detects common coding errors , such as buffer overrun , un - initialized memory , null pointer dereference , and memory and resource leaks 代码分析工具用于检测常见的编码错误,例如缓冲区溢出、内存未初始化、空指针取消引用,以及内存和资源泄露。
Describes the warnings , indicates each warning s level , and indicates potential problems rather than actual coding errors with statements that may not compile as you intend 描述这些警告,指示各个警告的等级,并指示可能无法按照预期编译的语句的潜在问题(而非实际编码错误) 。
For whether the listener is registered before registering it , and throw an exception or log an error if it is , so that evidence of the coding error can be gathered and acted on ,在登记侦听器之前检查是否已经登记了,如果已经登记,就抛出异常(或记录错误) ,这样就可以搜集编码错误的证据,并采取行动。