title英文详解错误示例中文解释Anon InnerLengthChecks for long anonymous innerclasses匿名内部类长度限制Avoid ArrayLoopsInstead of copying data betweentwo arrays, useSystem
arrayCopy method两个数组之间复制数据,使用System
arrayCopy方法Avoid Assert AsIdentifierFinds all places 'assert' isused as an identifier is used
避免'assert'做为标识Avoid CallingFinalizeObject
finalize() is called bythe garbage collector on anobject when garbage collectiondetermines that there are nomore references to the object
禁止使用Object
finalize()Avoid CatchingNPECode should never throw NPEunder normal circumstances
Acatch block may hide theoriginal error, causing othermore subtle errors in its wake
代码可能会抛出无法被TRY捕获的异常
Avoid CatchingThrowableThis is dangerous because itcasts too wide a net; it cancatch things likeOutOfMemoryError
Avoid Decim