Refactors Apache CXF JAXRS implementation (#748)

This commit is contained in:
nguyennamthai 2016-10-13 12:16:33 +07:00 committed by Grzegorz Piwowarek
parent 08c9791cb4
commit e92dbccb78
1 changed files with 2 additions and 4 deletions

View File

@ -61,13 +61,11 @@ public class Course {
@Path("{studentOrder}")
public Response deleteStudent(@PathParam("studentOrder") int studentOrder) {
Student student = students.get(studentOrder);
Response response;
if (student != null) {
students.remove(studentOrder);
response = Response.ok().build();
return Response.ok().build();
} else {
response = Response.notModified().build();
return Response.notModified().build();
}
return response;
}
}