The only exception is for nested ordered lists, which are placed in substeps.
惟一的例外是嵌套有序列表,它被放在子步骤中。
Listing 8 lists the code that was modified in the source of the jfs_mount.c file to create a segmentation fault at line 109 by creating a null pointer exception.
清单8列出了jfs_mount . c文件的源代码中被修改过的代码,我们在代码中创建了一个空指针异常,从而使代码在第109行产生段错误。
Additionally, any code that traverses our lists and forgets to check for the empty case will get a NoSuchElementException, as opposed to the much-less-helpful null-pointer exception.
另外,任何阻断我们的链表以及忽略检查空例的代码将返回一个NoSuchElementException,而不是那些没什么用的空指针异常。
应用推荐