... ·类不能是抽象类或终极类 ·实现一个或多个ejbCreate方法 ·实现商业方法 ·有无参数的构造方法 ·必须没有终极方法(finalize method) CartEJB源码如下:
基于8个网页-相关网页
If a finalize method calls only its parent, and then the method can simply be removed. For example.
如果一个finalize方法只调用它的父类,那么该方法就应当被移除。
Try to find some code with a finalize method that calls only super.finalize so that you can test the rule.
尝试通过一个只调用super . finalize的finalize方法,以便您可以测试该规则。
In Listing 2, the effect of the check on the value argument is negated by the existence of the finalize method.
在清单2中,finalize方法的存在使对value参数的检查变得无效。
应用推荐