forked from ben-manes/caffeine
-
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.
Replace switch with reflection in generated code
This patch expands on the suggestion in ben-manes#110 (comment) Instead of the proposed numeric code the name of factory is used as the classname to instantiate using reflection. This reduces the class size with 21K bringing the jar size to 786K.
- Loading branch information
Showing
1 changed file
with
14 additions
and
11 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