mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:30:28 +00:00
Make getMessageBuilder in Protobuf decoders protected
Closes gh-37147
This commit is contained in:
+1
-1
@@ -189,7 +189,7 @@ public class ProtobufDecoder extends ProtobufCodecSupport implements Decoder<Mes
|
||||
* Create a new {@code Message.Builder} instance for the given class.
|
||||
* <p>This method uses a ConcurrentHashMap for caching method lookups.
|
||||
*/
|
||||
private static Message.Builder getMessageBuilder(Class<?> clazz) throws Exception {
|
||||
protected static Message.Builder getMessageBuilder(Class<?> clazz) throws Exception {
|
||||
Method method = methodCache.get(clazz);
|
||||
if (method == null) {
|
||||
method = clazz.getMethod("newBuilder");
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@ public class ProtobufHttpMessageWriter extends EncoderHttpMessageWriter<Message>
|
||||
* Create a new {@code Message.Builder} instance for the given class.
|
||||
* <p>This method uses a ConcurrentHashMap for caching method lookups.
|
||||
*/
|
||||
private static Message.Builder getMessageBuilder(Class<?> clazz) throws Exception {
|
||||
protected static Message.Builder getMessageBuilder(Class<?> clazz) throws Exception {
|
||||
Method method = methodCache.get(clazz);
|
||||
if (method == null) {
|
||||
method = clazz.getMethod("newBuilder");
|
||||
|
||||
+1
-1
@@ -161,7 +161,7 @@ public class ProtobufJsonDecoder implements Decoder<Message> {
|
||||
* Create a new {@code Message.Builder} instance for the given class.
|
||||
* <p>This method uses a ConcurrentHashMap for caching method lookups.
|
||||
*/
|
||||
private static Message.Builder getMessageBuilder(Class<?> clazz) throws Exception {
|
||||
protected static Message.Builder getMessageBuilder(Class<?> clazz) throws Exception {
|
||||
Method method = methodCache.get(clazz);
|
||||
if (method == null) {
|
||||
method = clazz.getMethod("newBuilder");
|
||||
|
||||
Reference in New Issue
Block a user