Fixed declareMethod's Javadoc.