get rid of generics warning as many as possible

Description

Our codebase has tons of Java generics warnings, including:

  • legacy code before JDK5's generics feature is introduced;

  • coding sloppiness;

  • coding complexity;

  • some generics warnings are inevitable.

This ticket aims to get rid of Java generics warnings as much as possible. As demonstrates, Java generics warnings could lead to serious runtime exception. Getting rid of Java generics warnings is still highly relevant.

Given v6's current status before official release, it is a good timing to do such clearing up to pave the way for a long easier maintenance future.

This ticket is ambitious and it would involve lots of efforts. Time will tell that it is worthwhile.

Environment

None

Assignee

Nathan Xu

Reporter

Nathan Xu

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure