File tree Expand file tree Collapse file tree
java/core/src/main/java/com/google/protobuf Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public final class Descriptors {
7070 private static final EnumDescriptor [] EMPTY_ENUM_DESCRIPTORS = new EnumDescriptor [0 ];
7171 private static final ServiceDescriptor [] EMPTY_SERVICE_DESCRIPTORS = new ServiceDescriptor [0 ];
7272 private static final OneofDescriptor [] EMPTY_ONEOF_DESCRIPTORS = new OneofDescriptor [0 ];
73- private static final ConcurrentHashMap <Integer , FeatureSet > FEATURE_CACHE =
73+ private static final ConcurrentHashMap <FeatureSet , FeatureSet > FEATURE_CACHE =
7474 new ConcurrentHashMap <>();
7575
7676 @ SuppressWarnings ("NonFinalStaticField" )
@@ -142,7 +142,7 @@ static FeatureSet getEditionDefaults(Edition edition) {
142142 }
143143
144144 private static FeatureSet internFeatures (FeatureSet features ) {
145- FeatureSet cached = FEATURE_CACHE .putIfAbsent (features . hashCode () , features );
145+ FeatureSet cached = FEATURE_CACHE .putIfAbsent (features , features );
146146 if (cached == null ) {
147147 return features ;
148148 }
You can’t perform that action at this time.
0 commit comments