@JsonWriteNullProperties(false) @JsonIgnoreProperties(ignoreUnknown = true) public static class TaskDisplay {
@SuppressWarnings("deprecation") @Override public JsonSerialize.Inclusion findSerializationInclusion(Annotated a, JsonSerialize.Inclusion defValue) { JsonSerialize ann = a.getAnnotation(JsonSerialize.class); if (ann != null) { return ann.include(); } /* 23-May-2009, tatu: Will still support now-deprecated (as of 1.1) * legacy annotation too: */ JsonWriteNullProperties oldAnn = a.getAnnotation(JsonWriteNullProperties.class); if (oldAnn != null) { boolean writeNulls = oldAnn.value(); return writeNulls ? JsonSerialize.Inclusion.ALWAYS : JsonSerialize.Inclusion.NON_NULL; } return defValue; }
@JsonWriteNullProperties(false) @JsonIgnoreProperties(ignoreUnknown = true) public static class TaskDisplay {
@SuppressWarnings("deprecation") @Override public JsonSerialize.Inclusion findSerializationInclusion(Annotated a, JsonSerialize.Inclusion defValue) { JsonSerialize ann = a.getAnnotation(JsonSerialize.class); if (ann != null) { return ann.include(); } /* 23-May-2009, tatu: Will still support now-deprecated (as of 1.1) * legacy annotation too: */ JsonWriteNullProperties oldAnn = a.getAnnotation(JsonWriteNullProperties.class); if (oldAnn != null) { boolean writeNulls = oldAnn.value(); return writeNulls ? JsonSerialize.Inclusion.ALWAYS : JsonSerialize.Inclusion.NON_NULL; } return defValue; }
@JsonWriteNullProperties(value = false) public class HarPostData {
@SuppressWarnings("deprecation") @Override public JsonSerialize.Inclusion findSerializationInclusion(Annotated a, JsonSerialize.Inclusion defValue) { JsonSerialize ann = a.getAnnotation(JsonSerialize.class); if (ann != null) { return ann.include(); } /* 23-May-2009, tatu: Will still support now-deprecated (as of 1.1) * legacy annotation too: */ JsonWriteNullProperties oldAnn = a.getAnnotation(JsonWriteNullProperties.class); if (oldAnn != null) { boolean writeNulls = oldAnn.value(); return writeNulls ? JsonSerialize.Inclusion.ALWAYS : JsonSerialize.Inclusion.NON_NULL; } return defValue; }
/** * THIS CLASS IS MAPPED BY JACKSON TO AND FROM JSON. * DO NOT RENAME OR MODIFY FIELDS AND THEIR ACCESSORS. */ @JsonWriteNullProperties(false) public static class ScopeWrapper { private final ProjectWrapper project; private final TrustWrapper trust; public ScopeWrapper(ProjectWrapper project) { this.project = project; this.trust = null; } public ScopeWrapper(TrustWrapper trust) { this.project = null; this.trust = trust; } public ProjectWrapper getProject() { return project; } @JsonProperty("OS-TRUST:trust") public TrustWrapper getTrust() { return trust; } }
@Override public JsonSerialize.Inclusion findSerializationInclusion(Annotated a, JsonSerialize.Inclusion defValue) { JsonSerialize ann = a.getAnnotation(JsonSerialize.class); if (ann != null) { return ann.include(); } /* 23-May-2009, tatu: Will still support now-deprecated (as of 1.1) * legacy annotation too: */ JsonWriteNullProperties oldAnn = a.getAnnotation(JsonWriteNullProperties.class); if (oldAnn != null) { boolean writeNulls = oldAnn.value(); return writeNulls ? JsonSerialize.Inclusion.ALWAYS : JsonSerialize.Inclusion.NON_NULL; } return defValue; }
@JsonWriteNullProperties(value = false) public class HarPageTimings {
@SuppressWarnings("deprecation") @Override public JsonSerialize.Inclusion findSerializationInclusion(Annotated a, JsonSerialize.Inclusion defValue) { JsonSerialize ann = a.getAnnotation(JsonSerialize.class); if (ann != null) { return ann.include(); } /* 23-May-2009, tatu: Will still support now-deprecated (as of 1.1) * legacy annotation too: */ JsonWriteNullProperties oldAnn = a.getAnnotation(JsonWriteNullProperties.class); if (oldAnn != null) { boolean writeNulls = oldAnn.value(); return writeNulls ? JsonSerialize.Inclusion.ALWAYS : JsonSerialize.Inclusion.NON_NULL; } return defValue; }
@JsonWriteNullProperties(value = false) public class HarCacheStatus {
@SuppressWarnings("deprecation") @Override public JsonSerialize.Inclusion findSerializationInclusion(Annotated a, JsonSerialize.Inclusion defValue) { JsonSerialize ann = a.getAnnotation(JsonSerialize.class); if (ann != null) { return ann.include(); } /* 23-May-2009, tatu: Will still support now-deprecated (as of 1.1) * legacy annotation too: */ JsonWriteNullProperties oldAnn = a.getAnnotation(JsonWriteNullProperties.class); if (oldAnn != null) { boolean writeNulls = oldAnn.value(); return writeNulls ? JsonSerialize.Inclusion.ALWAYS : JsonSerialize.Inclusion.NON_NULL; } return defValue; }
@JsonWriteNullProperties(value = false) public class HarPostDataParam {
@JsonWriteNullProperties(value = false) public class HarCookie {
@JsonWriteNullProperties(value = false) public class StringSummaryData extends SummaryData {
@JsonWriteNullProperties(value = false) public abstract class SummaryData {
@JsonWriteNullProperties(false) @Data @AllArgsConstructor @NoArgsConstructor public static final class BriefAndDetailedError { private String brief; private HashMap<String, List<CandidateTablePruneCause>> details; Map<HashSet<String>, List<CandidateTablePruneCause>> enhanced() { return getDetails().entrySet().stream().collect(toMap( o -> newHashSet(o.getKey().split(",")), Map.Entry::getValue)); } String toJsonString() throws LensException { try(ByteArrayOutputStream out = new ByteArrayOutputStream()) { ObjectMapper mapper = new ObjectMapper(); mapper.writeValue(out, this); return out.toString("UTF-8"); } catch (Exception e) { throw new LensException("Error writing fact pruning messages", e); } } } }
@JsonWriteNullProperties(false) public class PasswordAuthenticationRequestV3 extends AuthenticationRequestV3 {
@JsonWriteNullProperties(false) @Data @AllArgsConstructor @NoArgsConstructor public static final class BriefAndDetailedError { private String brief; private HashMap<String, List<CandidateTablePruneCause>> details; Map<HashSet<String>, List<CandidateTablePruneCause>> enhanced() { return getDetails().entrySet().stream().collect(toMap( o -> newHashSet(o.getKey().split(",")), Map.Entry::getValue)); } String toJsonString() throws LensException { try(ByteArrayOutputStream out = new ByteArrayOutputStream()) { ObjectMapper mapper = new ObjectMapper(); mapper.writeValue(out, this); return out.toString("UTF-8"); } catch (Exception e) { throw new LensException("Error writing fact pruning messages", e); } } } }
@JsonWriteNullProperties(false) @Data @NoArgsConstructor