소스 검색

Mark factory setter API as private for alpha release.

Jisi Liu 10 년 전
부모
커밋
c265fbe3ca
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      javanano/src/main/java/com/google/protobuf/nano/MapFactories.java

+ 5 - 1
javanano/src/main/java/com/google/protobuf/nano/MapFactories.java

@@ -41,7 +41,11 @@ public final class MapFactories {
     <K, V> Map<K, V> forMap(Map<K, V> oldMap);
   }
 
-  public static void setMapFactory(MapFactory newMapFactory) {
+  // NOTE(liujisi): The factory setter is temporarily marked as package private.
+  // The way to provide customized implementations of maps for different
+  // platforms are still under discussion.  Mark it as private to avoid exposing
+  // the API in proto3 alpha release.
+  /* public */ static void setMapFactory(MapFactory newMapFactory) {
     mapFactory = newMapFactory;
   }