Sfoglia il codice sorgente

Merge pull request #2357 from D3Hunter/master

#2356 : fix ExceptionInInitializerError on IBM J9
Feng Xiao 9 anni fa
parent
commit
df56736db9

+ 1 - 1
java/core/src/main/java/com/google/protobuf/MapFieldLite.java

@@ -58,7 +58,7 @@ public final class MapFieldLite<K, V> extends LinkedHashMap<K, V> {
   }
   }
 
 
   @SuppressWarnings({"rawtypes", "unchecked"})
   @SuppressWarnings({"rawtypes", "unchecked"})
-  private static final MapFieldLite EMPTY_MAP_FIELD = new MapFieldLite(Collections.emptyMap());
+  private static final MapFieldLite EMPTY_MAP_FIELD = new MapFieldLite();
   static {
   static {
     EMPTY_MAP_FIELD.makeImmutable();
     EMPTY_MAP_FIELD.makeImmutable();
   }
   }