Removed extend parameter

Remove the unused parameter and the line that sets a value to it. Also edit the Javadoc block.