@@ -194,12 +194,12 @@ public Builder setBigPushDuration(int bigPushDuration) {
194
194
@ Deprecated
195
195
public Map <String , Map <String , String >> getThirdPartyChannel () {
196
196
if (null != thirdPartyChannel ) {
197
- Map <String , Map <String , String >> thirdPartyChannelRsp = new HashMap <>();
197
+ Map <String , Map <String , String >> thirdPartyChannelRsp = new HashMap <String , Map < String , String > >();
198
198
Set <Map .Entry <String , JsonObject >> entrySet = thirdPartyChannel .entrySet ();
199
199
for (Map .Entry <String , JsonObject > entry : entrySet ) {
200
200
JsonObject entryValue = entry .getValue ();
201
201
Set <Map .Entry <String , JsonElement >> valueEntrySet = entryValue .entrySet ();
202
- Map <String , String > valueMap = new HashMap <>();
202
+ Map <String , String > valueMap = new HashMap <String , String >();
203
203
for (Map .Entry <String , JsonElement > valueEntry : valueEntrySet ) {
204
204
valueMap .put (valueEntry .getKey (), null == valueEntry .getValue () ? null : valueEntry .getValue ().getAsString ());
205
205
}
@@ -212,7 +212,7 @@ public Map<String, Map<String, String>> getThirdPartyChannel() {
212
212
213
213
@ Deprecated
214
214
public Builder setThirdPartyChannel (Map <String , Map <String , String >> thirdPartyChannel ) {
215
- this .thirdPartyChannel = new HashMap <>();
215
+ this .thirdPartyChannel = new HashMap <String , JsonObject >();
216
216
if (null != thirdPartyChannel ) {
217
217
Set <Map .Entry <String , Map <String , String >>> entrySet = thirdPartyChannel .entrySet ();
218
218
for (Map .Entry <String , Map <String , String >> entry : entrySet ) {
@@ -239,7 +239,7 @@ public Builder setThirdPartyChannelV2(Map<String, JsonObject> thirdPartyChannel)
239
239
240
240
public Builder addCustom (Map <String , String > extras ) {
241
241
if (customData == null ) {
242
- customData = new LinkedHashMap <>();
242
+ customData = new LinkedHashMap <String , JsonPrimitive >();
243
243
}
244
244
for (Map .Entry <String , String > entry : extras .entrySet ()) {
245
245
customData .put (entry .getKey (), new JsonPrimitive (entry .getValue ()));
@@ -250,7 +250,7 @@ public Builder addCustom(Map<String, String> extras) {
250
250
public Builder addCustom (String key , Number value ) {
251
251
Preconditions .checkArgument (! (null == key ), "Key should not be null." );
252
252
if (customData == null ) {
253
- customData = new LinkedHashMap <>();
253
+ customData = new LinkedHashMap <String , JsonPrimitive >();
254
254
}
255
255
customData .put (key , new JsonPrimitive (value ));
256
256
return this ;
@@ -259,7 +259,7 @@ public Builder addCustom(String key, Number value) {
259
259
public Builder addCustom (String key , String value ) {
260
260
Preconditions .checkArgument (! (null == key ), "Key should not be null." );
261
261
if (customData == null ) {
262
- customData = new LinkedHashMap <>();
262
+ customData = new LinkedHashMap <String , JsonPrimitive >();
263
263
}
264
264
customData .put (key , new JsonPrimitive (value ));
265
265
return this ;
@@ -268,7 +268,7 @@ public Builder addCustom(String key, String value) {
268
268
public Builder addCustom (String key , Boolean value ) {
269
269
Preconditions .checkArgument (! (null == key ), "Key should not be null." );
270
270
if (customData == null ) {
271
- customData = new LinkedHashMap <>();
271
+ customData = new LinkedHashMap <String , JsonPrimitive >();
272
272
}
273
273
customData .put (key , new JsonPrimitive (value ));
274
274
return this ;
0 commit comments