Code Room
Code reviewMediumcr-g350
Subject Backward compatibilityLevel Mid–Senior~20 minCommon in Code quality & review interviewsIndustries Software development, Technology

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.

Talk through your review
Code to reviewjava
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.