Enhance java doc

Is `Type` intended to be capitalized?