JSR 310 fixes this by throwing an exception for null arguments.
JSR 310通过抛出null参数异常修复了这个问题。
If timeouts are not expected, then throwing an exception might be a better choice.
如果预料不会超时,则引发异常可能是一种更好的选择。
The schema validator can now take responsibility for throwing an exception for the bug mentioned earlier.
现在,模式验证器可以负责为前面那个 bug 抛出异常。
If I do this, try and get the 10th element of a list that's only eight long. I get what looks like an error, but it's actually throwing an exception.
如果我来这么做,试着去取长度为8的列表的第十个元素,我貌似能得到一个错误。
应用推荐