(Logger logger, T def, Callable<T> c)
| 769 | * insertion/writing |
| 770 | * @param o the object to be converted |
| 771 | */ |
| 772 | public static void reflectWrite(MapWriter.EntryWriter ew, Object o) { |
| 773 | reflectWrite( |
| 774 | ew, |
| 775 | o, |
| 776 | field -> field.getAnnotation(JsonProperty.class) != null, |
| 777 | null, // No catch-all/unknown-field support for objects annotated with our mimic |
| 778 | // annotations. |
| 779 | field -> { |
| 780 | final JsonProperty prop = field.getAnnotation(JsonProperty.class); |
| 781 | return prop.value().isEmpty() ? field.getName() : prop.value(); |
nothing calls this directly
no test coverage detected