首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 动态执行@ notnull注释的java程序中通过运行时字节码

动态执行@ notnull注释的java程序中通过运行时字节码

资 源 简 介

This project delivers a Java agent (i.e. a bytecode transformer that is executed on the fly by the JVM as it loads classes) that adds run-time checks that enforce @NotNull annotations on parameters, method results, and fields. Motivation The programming style where the programmer inserts thorough validity checks of parameter values at the top of each method (or at least those that constitute the exported interface of the module) is a very beneficial one. It helps reduce the distance between the source location where an error manifests itself and where it originates. Also, it helps the explicit separation of responsibilities and blame assignment between the modules of the system. Unfortunately, due to the fact that every value of reference type in Java can be null, adhering to this style means inserting a large number of null checks throughout the program. For example: ``` public class MyClass { /** Frobs the specified

文 件 列 表

docs
notnullcheckweaver
resources
allclasses-frame.html
allclasses-noframe.html
constant-values.html
deprecated-list.html
help-doc.html
index-all.html
index.html
overview-tree.html
package-list
serialized-form.html
stylesheet.css
License.txt
notnullcheckweaver-weaver.jar
notnullcheckweaver.jar

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
1.002045s