Make java type explicit to avoid a test failure.

@bug W-2062369@
Merging origin/goliver/master-pending-apex-type-fix into master