Watching the number of object imports is good for predicting brittleness, but it can be misleading if entire packages have been imported with the .* notation (for example, com.acme.user.*).
观察对象导入的数量就很容易预测脆弱性,但如果使用 .* 符号(例如 com.acme.user.*)导入整个包,则很可能产生误导。
Because of this responsibility (exposed through a large number of public methods), they're said to have high afferent coupling, which also results in a reversed brittleness.
因为存在这种责任(通过大量public方法导出),所以它们具有高度的输入耦合,也会导致反向的脆弱性。
应用推荐