Update the javadocs in declarative (#7749).

Change-Id: If4fd1f0434c1c6d78e47fc503b49781c35494f84