netty5/common
JongYoon Lim 5a9da7c5ba 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 07:09:36 +02:00
..
src Remove duplicate code in ConstantPool class 2015-04-29 07:09:36 +02:00
pom.xml Auto-generating primitive collections for int and char keys. 2015-04-10 07:56:54 -07:00