[Demonstration 1]

[Buggy Method]
public static void main(String[] args) {
    new SpringApplicationBuilder().sources(Application.class).bannerMode(Banner.Mode.OFF).run(args);
}

[Buggy Hunk]
.sources(Application.class)

[Patch]
.sources(AuditSpringBootApp.class)

[Demonstration 2]

[Buggy Method]
@RequestMapping(value = "person", method = RequestMethod.GET)
public ResponseEntity<?> getAllPersons() {
    return ResponseEntity.ok(repository.findAll());
}

[Buggy Hunk]
public ResponseEntity<?> getAllPersons() {

[Patch]
public ResponseEntity<Iterable<Person>> getAllPersons() {

[Demonstration 3]

[Buggy Method]
@RequestMapping(value = "/addEventServices", method = RequestMethod.POST, consumes = { "multipart/form-data" })
public ResponseEntity<Status> addEventServices(@RequestPart(value = "EventServicesVO") EventServicesVO eventServicesVO, @RequestParam("file") MultipartFile[] inputFile) {
    LOGGER.info("contoller::addEvent-start");
    Status status;
    Long companyId = eventServicesVO.getCompanyId();
    if (companyId == null || "".equals(companyId)) {
        LOGGER.error("company id should not be null");
        status = new Status(0, "company id should not be null");
        return new ResponseEntity<>(status, HttpStatus.BAD_REQUEST);
    }
    try {
        eventServicesVO.setInputFile(Arrays.asList(inputFile));
        evuntuServices.addEventServices(eventServicesVO);
        status = new Status(1, "EventServices added Successfully !");
        return new ResponseEntity<>(status, HttpStatus.OK);
    } catch (Exception e) {
        LOGGER.error(INTERNAL_SERVER_ERROR + e);
        status = new Status(0, e.toString());
        return new ResponseEntity<>(status, HttpStatus.INTERNAL_SERVER_ERROR);
    }
}

[Buggy Hunk]
if(companyId==null || "".equals(companyId)){

[Patch]
if(companyId==null || companyId==0){