interface の method の modifier

そいや、public つけるのは推奨されないんだっけ?私はつけているなぁ。えーと、Java Language Specification でも見てみるか。

Every method declaration in the body of an interface is implicitly public.

It is permitted, but strongly discouraged as a matter of style, to redundantly specify the public modifier for interface methods.

うぃ。strongly discouraged かー。
どうせだからと、Eclipse 3.3.0/NetBeans IDE 6.0 で Extract Interface を試してみたら、Eclipse は public abstract 付き*1NetBeans は public も abstract もなしになった。ふむ、NetBeans++。

*1:当然、PMD が警告を出す