若有非法的参数传入,加以检查,则会立刻引发意义明确的异常。相反,若无此检查,后续情形大相径庭。
If an invalid parameter is passed into a method with checking, a prompt and clear exception will be thrown, the situation can be quite different without a check.
一般情况下,DOM实现必须检验操作的正确性,并在应用程序传递错误参数或者执行非法操作时抛出异常。
Normally, a DOM implementation must verify the correctness of operations and throw an exception if an application passes the wrong parameters or performs an illegal operation.
拥有参数的方法不是类终结者(实际上,一个规则应当将这些报告为非法的)。
Methods with parameters are not class finalizers (in fact, a rule should be written to report these as invalid).
拥有参数的方法不是类终结者(实际上,一个规则应当将这些报告为非法的)。
Methods with parameters are not class finalizers (in fact, a rule should be written to report these as invalid).
应用推荐