private static Set<Integer> getCodes(List<Response> la, Integer def) { Set<Integer> codes = new TreeSet<>(); for (Response a : la) { for (int i : a.value()) codes.add(i); for (int i : a.code()) codes.add(i); } if (codes.isEmpty() && def != null) codes.add(def); return codes; }
private static Set<Integer> getCodes(List<Response> la, Integer def) { Set<Integer> codes = new TreeSet<>(); for (Response a : la) { for (int i : a.value()) codes.add(i); for (int i : a.code()) codes.add(i); } if (codes.isEmpty() && def != null) codes.add(def); return codes; }
private static Set<Integer> getCodes(List<Response> la, Integer def) { Set<Integer> codes = new TreeSet<>(); for (Response a : la) { for (int i : a.value()) codes.add(i); for (int i : a.code()) codes.add(i); } if (codes.isEmpty() && def != null) codes.add(def); return codes; }
Builder apply(Response a) { if (a != null) { if (a.partSerializer() != HttpPartSerializer.Null.class) partSerializer = a.partSerializer(); if (a.partParser() != HttpPartParser.Null.class) partParser = a.partParser(); if (a.value().length > 0) code = a.value()[0]; if (a.code().length > 0) code = a.code()[0]; schema.apply(a.schema()); } return this; }
Builder apply(Response a) { if (a != null) { if (a.partSerializer() != HttpPartSerializer.Null.class) partSerializer = a.partSerializer(); if (a.partParser() != HttpPartParser.Null.class) partParser = a.partParser(); if (a.value().length > 0) code = a.value()[0]; if (a.code().length > 0) code = a.code()[0]; schema.apply(a.schema()); } return this; }
Builder apply(Response a) { if (a != null) { if (a.partSerializer() != HttpPartSerializer.Null.class) partSerializer = a.partSerializer(); if (a.partParser() != HttpPartParser.Null.class) partParser = a.partParser(); if (a.value().length > 0) code = a.value()[0]; if (a.code().length > 0) code = a.code()[0]; schema.apply(a.schema()); } return this; }
expected = bodyType.getAnnotation(Response.class).code();
expected = bodyType.getAnnotation(Response.class).code();
expected = bodyType.getAnnotation(Response.class).code();
HttpPartSchemaBuilder apply(Response a) { codes(a.value()); codes(a.code()); required(false); allowEmptyValue(true); serializer(a.partSerializer()); parser(a.partParser()); apply(a.schema()); return this; }
HttpPartSchemaBuilder apply(Response a) { codes(a.value()); codes(a.code()); required(false); allowEmptyValue(true); serializer(a.partSerializer()); parser(a.partParser()); apply(a.schema()); return this; }
HttpPartSchemaBuilder apply(Response a) { codes(a.value()); codes(a.code()); required(false); allowEmptyValue(true); serializer(a.partSerializer()); parser(a.partParser()); apply(a.schema()); return this; }