I can't remember, but I think I had some sort of compile error while trying to build, although I can't see why that would have been the case. setAttribute does take (String s, Object o) so about 0.01% more correct anyway.