Based on this discussion the idea is to use an enum instead of a pile of static variables for associating aggregators to cache keys in AggregatorUtil, and use a static initializer to ensure that it is impossible to define the same byte identifier twice. CacheKeyBuilder should also be modified to accept the enum instead of the byte value.
Based on this discussion the idea is to use an enum instead of a pile of static variables for associating aggregators to cache keys in
AggregatorUtil, and use a static initializer to ensure that it is impossible to define the same byte identifier twice.CacheKeyBuildershould also be modified to accept the enum instead of the byte value.