Not affected by this change, but this could also be changed into the following, avoiding one allocation:

    Set<T> set  = new HashSet<T>( ts.length );
    Collections.addAll( set, ts );
    return set;

(whether it's making a difference in practice is another story, but why not employ the pattern in this commonly used method)