Simplify RestModifyView interface
The inputType can be determined by looking at the declaration of the interface. We don't need to implement a method in each view implementation to supply the correct data for reflection in RestApiServlet. Change-Id: I1afae6ddef661722efe39ccc917c028e7e993595
This commit is contained in:
committed by
Edwin Kempin
parent
63cc8ec1b6
commit
5ab78ad7c2
@@ -48,11 +48,6 @@ class PutTopic implements RestModifyView<ChangeResource, Input> {
|
||||
this.dbProvider = dbProvider;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<Input> inputType() {
|
||||
return Input.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object apply(ChangeResource req, Input input)
|
||||
throws BadRequestException, AuthException,
|
||||
|
||||
Reference in New Issue
Block a user