Fix javadocs for depreciated method.