PMD 傾向と対策

■Avoid calls to overridable methods during construction
上書き可能なメソッドをコンストラクタで呼ぶな。

呼び出しているメソッドをfinalにする。

■Avoid reassigning parameters such as 'currentTreeItem'
引数がメソッド内で上書きされている。
引数をコピーする。

■Avoid unnecessary comparisons in boolean expressions
いちいちtrueとかfalseをつけるな。

==trueや==falseをはずす。(これの方が見やすいと思うなら、この部分のPMDを止める)

■Avoid using implementation types like 'Vector'; use the interface instead
インターフェースを使いましょう。

クラスVectorをinterface Listにする。(Hashtableの場合、Map)