removing closing tags from java docs