这个缺点可通过表述和强制某种设计和编码指南(如契约优先的开发)得到缓解。
This weakness can be mitigated by stating and enforcing certain design and coding guidelines such as contract-first development.
然而,防止出现安全风险的最佳方法是在项目开始之前就设置适当的编码规范,并在检查代码时强制施行这些规范。
However, the best way to avoid security risk is to have proper coding guidelines before the project starts and enforce them during code review.
方面也可以用在AJDT中,强制实施编码标准,跟踪对多个属性页的变化,以及用eclipse的ISafeRunnable接口包装调用。
Aspects are also used in AJDT to enforce coding standards, keep track of changes to multiple properties pages, and wrap calls using Eclipse's ISafeRunnable interface.
应用推荐