ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Seven Low-Cost Ways to Improve Legacy Code
Subject:   PMD and jEnum
Date:   2004-05-03 08:57:48
From:   stinkyminky
I am a fan of IntelliJ.


However, if you are looking for code-inspection tool, you should check out PMD. http://pmd.sourceforge.net/


One sub-project of PMD is CPD [ cut&paste dectactor ]. It is a pretty neat tool.


As for Enum, it is not easy to write correct implementation of it. Serialization, '==' and other issues comes into the play. Most of the issues have been highlighted in Joshua Bloch's Effective Java book. However, you can use 'jEnum' to create for you.


http://jenum.sourceforge.net/


For IntelliJ, I created the external tools for 'PMD' and 'jEnum'. With a couple of cliks, I can check my code and create Enum class. Hack - I even put JAXB binding as the external tools.


Life is beautiful with IntelliJ....


1 to 1 of 1
  1. PMD and jEnum
    2004-05-03 16:44:46  Robert Simmons, Jr. | O'Reilly Author [View]

1 to 1 of 1