@Controller
public class PaymentController {
public ResponseEntity<Void> makePayment(int id) {
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.setLocation(linkTo(AffordanceBuilder.methodOn(this.getClass()).getPayment()).toUri());
<BUG>return new ResponseEntity(httpHeaders, HttpStatus.CREATED);
</BUG>
}
public Payment getPayment() {
return null;

@Controller
public class PaymentController {
public ResponseEntity<Void> makePayment(int id) {
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.setLocation(linkTo(AffordanceBuilder.methodOn(this.getClass()).getPayment()).toUri());
return new ResponseEntity<Void>(httpHeaders, HttpStatus.CREATED);
}
public Payment getPayment() {
return null;
