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.

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.

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....

Full Threads Newest First

Showing messages 1 through 1 of 1.

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

    I address serialization of Constant Objects in my book. It basically involves using the read Resolve method. It is quite easy especially since you can put all of the technical stuff in the base class.