Published March 15, 2025 | Journal article | Version v1 | https://doi.org/10.21105/joss.07308

DemeterWatch: A Java tool to detect Law of Demeter violations in Java collections

  • 1. Instituto Federal de Educação Ciência e Tecnologia da Paraíba - IFPB, Brazil
  • 2. Universidade Federal da Paraíba - UFPB, Brazil

Files

DemeterWatch-v1.0.zip

Files (10.3 MB)

Name Size Download all
md5:85ec2049693d855200278e2547d9a313
9.9 MB Preview Download
md5:dd00d3d6bff6ca04323df3ad57a20342
412.0 kB Preview Download

Additional details

Dates

Issued
March 15, 2025

References

  1. P. de Aquino, J. P., de M. Firmino, J. F., D. Moreira, D., & de S. Job, R. (2025). DemeterWatch: A Java tool to detect Law of Demeter violations in Java collections (Version v1.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.15012171
  2. Lieberherr, K., Holland, I., & Riel, A. (1988). Object-oriented programming: an objective sense of style. ACM SIGPLAN Notices, 23(11), 323–334. https://doi.org/10.1145/62084.62113
  3. Bock, D. (2018). The paperboy, the wallet, and the Law of Demeter. https://www2.ccs.neu.edu/research/demeter/demeter-method/LawOfDemeter/paper-boy/demeter.pdf
  4. Parnas, D. L. (1972). On the criteria to be used in decomposing systems into modules. Communications of the ACM, 15(12), 1053–1058. https://doi.org/10.1145/361598.361623
  5. Terra, R., Miranda, L. F., Valente, M. T., & Bigonha, R. S. (2013). Qualitas.class corpus: a compiled version of the qualitas corpus. ACM SIGSOFT Software Engineering Notes, 38(5), 1–4. https://doi.org/10.1145/2507288.2507314
  6. Pressman, R. S., & Maxim, B. R. (2014). Software engineering: A practitioner's approach (8th ed.). McGraw-Hill Professional. ISBN: 9780078022128
  7. Chiba, R., Hashiura, H., & Komiya, S. (2010). A tool for detecting detects on class implementation in object oriented program on the basis of the Law of Demeter: Focusing on dependency between packages. Proceedings of the 10th WSEAS International Conference on Applied Computer Science, 315–320. ISBN: 9789604742318
  8. Daqing Hou, Hoover, H. J., & Rudnicki, P. (n.d.). Specifying the Law of Demeter and C++ programming guidelines with FCL. Source Code Analysis and Manipulation, Fourth IEEE International Workshop on, 119–127. https://doi.org/10.1109/scam.2004.22
  9. Collections Framework Overview — docs.oracle.com. https://docs.oracle.com/javase/8/docs/technotes/guides/collections/overview.html
  10. Bardas, A. G., & others. (2010). Static code analysis. Journal of Information Systems & Operations Management, 4(2), 99–107.