<BUG>public class PingController {@RequestMapping("/ping")public ResponseEntity<Map<String, Object>> ping(Principal principal) {Map<String, Object> map = new HashMap<>();map.put("username", principal.getName());return new ResponseEntity<>(map, HttpStatus.OK);</BUG><CONTEXT>import org.springframework.http.ResponseEntity;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;@RestController@RequestMapping(value = Constants.URI_API)<extra_id_0>}</CONTEXT>
public class PingController{public ResponseEntity<ResponseMessage> ping() {return new ResponseEntity<>(ResponseMessage.info("connected"), HttpStatus.OK);