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:
		 Shawn Pearce
					Shawn Pearce
				
			
				
					committed by
					
						 Edwin Kempin
						Edwin Kempin
					
				
			
			
				
	
			
			
			 Edwin Kempin
						Edwin Kempin
					
				
			
						parent
						
							63cc8ec1b6
						
					
				
				
					commit
					5ab78ad7c2
				
			| @@ -25,13 +25,6 @@ package com.google.gerrit.extensions.restapi; | ||||
|  * @param <I> type of input the JSON parser will parse the input into. | ||||
|  */ | ||||
| public interface RestModifyView<R extends RestResource, I> extends RestView<R> { | ||||
|   /** | ||||
|    * @return Java class object defining the input type. The JSON parser will | ||||
|    *         parse the supplied request body into a new instance of this class | ||||
|    *         before passing it to apply. | ||||
|    */ | ||||
|   Class<I> inputType(); | ||||
|  | ||||
|   /** | ||||
|    * Process the view operation by altering the resource. | ||||
|    * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user