HashSet<Integer>[] set = new HashSet<Integer>[256];

とかするとコンパイルで generic array creation のエラーになります。
new のやり方が悪いと思うんですけど、どうすべきでしょうか。