Eclipse3.2

Eclipse3.2が出たので、早速さわってみた。


表面上はほとんど変わってないけど、
細かい部分でけっこう変わっているような。
JUnit4に対応してるっぽいし。


equals、hashCodeの生成はうれしいけど、
equalsのコードはいけてないような・・・。
Stringのフィールド2つを持つクラスのequalsはこんなんなる。


public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Test other = (Test) obj;
if (abc == null) {
if (other.abc != null)
return false;
} else if (!abc.equals(other.abc))
return false;
if (def == null) {
if (other.def != null)
return false;
} else if (!def.equals(other.def))
return false;
return true;
}
どんなんでしょう、これ。
設定で変えられそうにないしなぁ。