Refactors Apache CXF JAXRS implementation (#748)
This commit is contained in:
parent
08c9791cb4
commit
e92dbccb78
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue