Code Room
Code reviewMedium
Question
Review this Java change that adds a new value to an order-status enum returned by a public API. The server side is shown; clients deserialize `status` into their own enum.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
public enum OrderStatus { PENDING, PAID, SHIPPED, DELIVERED, PARTIALLY_REFUNDED; // newly added this release} // serialized as: { "status": "PARTIALLY_REFUNDED" }@GetMapping("/orders/{id}")public OrderDto get(@PathVariable String id) { Order o = service.find(id); return new OrderDto(o.getId(), o.getStatus());}Run or narrate your approach, then ask the coach.