XMPPError javadocs

The XMPPError javadocs seem out of date in release 2.2.1. My Eclipse code completion shows that the following method is deprecated, but the javadocs do not indicate as much:

public XMPPError(int code)