Revert "Revert "Correct nullability and final constraints on new APIs.""

This reverts commit 8462c66bd52f3132c3fa03475fcab2af30618f67.

Reason for revert: Looks like this change broke the build.

Change-Id: I4cff1ec1211e278d5e5734f1594c096722293662
4 files changed