Updates for the javadocs of declarative (#7749).

Change-Id: I623ba0c17673144f0886556937d25f80ea1f3ffd