@@ -80,34 +80,35 @@ public Set<TypeElement> buildWithDependencies() {
80
80
/*********************************************************************
81
81
*/
82
82
83
- @ Override
84
- public JsonObjectFormatVisitor expectObjectFormat (JavaType type ) {
85
- MessageElementVisitor visitor = new MessageElementVisitor (_provider , type , _definedTypeElementBuilders ,
86
- _isNested );
87
- _builder = visitor ;
88
- _definedTypeElementBuilders .addTypeElement (type , visitor , _isNested );
89
- return visitor ;
90
- }
83
+ @ Override
84
+ public JsonObjectFormatVisitor expectObjectFormat (JavaType type ) {
85
+ MessageElementVisitor visitor = new MessageElementVisitor (_provider , type , _definedTypeElementBuilders ,
86
+ _isNested );
87
+ _builder = visitor ;
88
+ _definedTypeElementBuilders .addTypeElement (type , visitor , _isNested );
89
+ return visitor ;
90
+ }
91
91
92
- @ Override
93
- public JsonMapFormatVisitor expectMapFormat (JavaType mapType ) {
94
- // 31-Mar-2017, tatu: I don't think protobuf v2 really supports map types natively,
95
- // and we can't quite assume anything specific can we?
96
- return _throwUnsupported ("'Map' type not supported as type by protobuf module" );
97
- }
92
+ @ Override
93
+ public JsonMapFormatVisitor expectMapFormat (JavaType mapType ) {
94
+ // 31-Mar-2017, tatu: I don't think protobuf v2 really supports map types natively,
95
+ // and we can't quite assume anything specific can we?
96
+ return _throwUnsupported ("'Map' type not supported as type by protobuf module" );
97
+ }
98
98
99
- @ Override
100
- public JsonArrayFormatVisitor expectArrayFormat (JavaType type ) {
101
- // 31-Mar-2017, tatu: This is bit messy, may get Base64 encoded or int array so
102
- if (ProtobufSchemaHelper .isBinaryType (type )) {
103
- _simpleType = ScalarType .BYTES ;
104
- return null ;
105
- }
99
+ @ Override
100
+ public JsonArrayFormatVisitor expectArrayFormat (JavaType type ) {
101
+ // 31-Mar-2017, tatu: This is bit messy, may get Base64 encoded or int array so
102
+ if (ProtobufSchemaHelper .isBinaryType (type )) {
103
+ _simpleType = ScalarType .BYTES ;
104
+ return null ;
105
+ }
106
106
107
- // !!! TODO: surely we should support array types, right?
107
+ // !!! TODO: surely we should support array types, right?
108
+ // 21-Aug-2024, tatu: [dataformats-binary#483] caused by this
108
109
109
- return _throwUnsupported ("'Map ' type not supported as type by protobuf module" );
110
- }
110
+ return _throwUnsupported ("'Array ' type not supported as type by protobuf module" );
111
+ }
111
112
112
113
/*
113
114
/*********************************************************************
0 commit comments