Skip to content

Commit db16bca

Browse files
mhansencopybara-github
authored andcommitted
Mark com.google.protobuf.Protobuf.registerSchema as private
This is only used from within the Protobuf class in practice. I am narrowing down this class in preparation to add some optimisations. PiperOrigin-RevId: 816028146
1 parent f58b098 commit db16bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/core/src/main/java/com/google/protobuf/Protobuf.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <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-
Schema<?> registerSchema(Class<?> messageType, Schema<?> schema) {
93+
private Schema<?> registerSchema(Class<?> messageType, Schema<?> schema) {
9494
checkNotNull(messageType, "messageType");
9595
checkNotNull(schema, "schema");
9696
return schemaCache.putIfAbsent(messageType, schema);

0 commit comments

Comments
 (0)