File tree 2 files changed +8
-4
lines changed
src/test/java/com/fasterxml/jackson/databind
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -238,13 +238,15 @@ protected ObjectReader objectReader(Class<?> cls) {
238
238
return sharedMapper ().readerFor (cls );
239
239
}
240
240
241
+ // `public` since 2.16, was only `protected` before then.
241
242
// @since 2.10
242
- protected static ObjectMapper newJsonMapper () {
243
+ public static ObjectMapper newJsonMapper () {
243
244
return new JsonMapper ();
244
245
}
245
246
247
+ // `public` since 2.16, was only `protected` before then.
246
248
// @since 2.10
247
- protected static JsonMapper .Builder jsonMapperBuilder () {
249
+ public static JsonMapper .Builder jsonMapperBuilder () {
248
250
return JsonMapper .builder ();
249
251
}
250
252
Original file line number Diff line number Diff line change @@ -437,7 +437,8 @@ protected byte[] encodeInUTF32BE(String input)
437
437
return result ;
438
438
}
439
439
440
- public String q (String str ) {
440
+ // `static` since 2.16, was only `public` before then.
441
+ public static String q (String str ) {
441
442
return '"' +str +'"' ;
442
443
}
443
444
@@ -446,7 +447,8 @@ public String quote(String str) {
446
447
return q (str );
447
448
}
448
449
449
- protected static String a2q (String json ) {
450
+ // `public` since 2.16, was only `protected` before then.
451
+ public static String a2q (String json ) {
450
452
return json .replace ("'" , "\" " );
451
453
}
452
454
You can’t perform that action at this time.
0 commit comments