@@ -29,28 +29,28 @@ final class Protobuf {
2929 new ConcurrentHashMap <Class <?>, Schema <?>>();
3030
3131 /** Gets the singleton instance of the Protobuf runtime. */
32- public static Protobuf getInstance () {
32+ static Protobuf getInstance () {
3333 return INSTANCE ;
3434 }
3535
3636 /** Writes the given message to the target {@link Writer}. */
37- public <T > void writeTo (T message , Writer writer ) throws IOException {
37+ <T > void writeTo (T message , Writer writer ) throws IOException {
3838 schemaFor (message ).writeTo (message , writer );
3939 }
4040
4141 /** Reads fields from the given {@link Reader} and merges them into the message. */
42- public <T > void mergeFrom (T message , Reader reader ) throws IOException {
42+ <T > void mergeFrom (T message , Reader reader ) throws IOException {
4343 mergeFrom (message , reader , ExtensionRegistryLite .getEmptyRegistry ());
4444 }
4545
4646 /** Reads fields from the given {@link Reader} and merges them into the message. */
47- public <T > void mergeFrom (T message , Reader reader , ExtensionRegistryLite extensionRegistry )
47+ <T > void mergeFrom (T message , Reader reader , ExtensionRegistryLite extensionRegistry )
4848 throws IOException {
4949 schemaFor (message ).mergeFrom (message , reader , extensionRegistry );
5050 }
5151
5252 /** Marks repeated/map/extension/unknown fields as immutable. */
53- public <T > void makeImmutable (T message ) {
53+ <T > void makeImmutable (T message ) {
5454 schemaFor (message ).makeImmutable (message );
5555 }
5656
@@ -60,7 +60,7 @@ <T> boolean isInitialized(T message) {
6060 }
6161
6262 /** Gets the schema for the given message type. */
63- public <T > Schema <T > schemaFor (Class <T > messageType ) {
63+ <T > Schema <T > schemaFor (Class <T > messageType ) {
6464 checkNotNull (messageType , "messageType" );
6565 @ SuppressWarnings ("unchecked" )
6666 Schema <T > schema = (Schema <T >) schemaCache .get (messageType );
@@ -78,7 +78,7 @@ public <T> Schema<T> schemaFor(Class<T> messageType) {
7878
7979 /** Gets the schema for the given message. */
8080 @ SuppressWarnings ("unchecked" )
81- public <T > Schema <T > schemaFor (T message ) {
81+ <T > Schema <T > schemaFor (T message ) {
8282 return schemaFor ((Class <T >) message .getClass ());
8383 }
8484
@@ -90,7 +90,7 @@ public <T> Schema<T> schemaFor(T message) {
9090 * @return the previously registered schema, or {@code null} if the given schema was successfully
9191 * registered.
9292 */
93- public Schema <?> registerSchema (Class <?> messageType , Schema <?> schema ) {
93+ Schema <?> registerSchema (Class <?> messageType , Schema <?> schema ) {
9494 checkNotNull (messageType , "messageType" );
9595 checkNotNull (schema , "schema" );
9696 return schemaCache .putIfAbsent (messageType , schema );
@@ -106,7 +106,7 @@ public Schema<?> registerSchema(Class<?> messageType, Schema<?> schema) {
106106 * previously.
107107 */
108108 @ CanIgnoreReturnValue
109- public Schema <?> registerSchemaOverride (Class <?> messageType , Schema <?> schema ) {
109+ Schema <?> registerSchemaOverride (Class <?> messageType , Schema <?> schema ) {
110110 checkNotNull (messageType , "messageType" );
111111 checkNotNull (schema , "schema" );
112112 return schemaCache .put (messageType , schema );
0 commit comments