Fix typo
Deprecate also the helper functions for java typical classes