netty5/common
JongYoon Lim c4d69e982b Remove duplicate code in ConstantPool class
Motivation:

Currently, valueOf() and newInstance() use almost same code to create new constant.
For maintainability, it's better to share duplicate code among them.

Motification:

Added new private functions.
- checkNotNullAndNotEmpty() is for checking whether the name of a constant is null and empty.
- newConstant0() is for creating a new constant.

Result:

- Compact source code
- Improvement of maintainability
2015-04-29 08:03:37 +02:00
..
src Remove duplicate code in ConstantPool class 2015-04-29 08:03:37 +02:00
pom.xml Auto-generating primitive collections for int and char keys. 2015-04-10 07:57:30 -07:00