forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
31a6ab9
commit c4d69e9
Showing
1 changed file
with
29 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters