mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	Fixed @Implementation for the api commands - responseObject field should be the instance of BaseResponse
Conflicts: api/src/com/cloud/api/commands/UpdateStorageNetworkIpRangeCmd.java
This commit is contained in:
		
							parent
							
								
									42dac79e08
								
							
						
					
					
						commit
						fcdf6f2bec
					
				| @ -22,10 +22,12 @@ import java.lang.annotation.Retention; | ||||
| import java.lang.annotation.RetentionPolicy; | ||||
| import java.lang.annotation.Target; | ||||
| 
 | ||||
| import com.cloud.api.response.BaseResponse; | ||||
| 
 | ||||
| @Retention(RetentionPolicy.RUNTIME) | ||||
| @Target({ TYPE }) | ||||
| public @interface Implementation { | ||||
|     Class<?> responseObject(); | ||||
|     Class<? extends BaseResponse> responseObject(); | ||||
| 
 | ||||
|     String description() default ""; | ||||
| 
 | ||||
|  | ||||
| @ -34,7 +34,7 @@ import com.cloud.exception.ResourceAllocationException; | ||||
| import com.cloud.exception.ResourceUnavailableException; | ||||
| import com.cloud.user.Account; | ||||
| 
 | ||||
| @Implementation(description="Update a Storage network IP range, only allowed when no IPs in this range have been allocated.", responseObject=UpdateStorageNetworkIpRangeCmd.class, since="3.0.0") | ||||
| @Implementation(description="Update a Storage network IP range, only allowed when no IPs in this range have been allocated.", responseObject=StorageNetworkIpRangeResponse.class, since="3.0.0") | ||||
| public class UpdateStorageNetworkIpRangeCmd extends BaseAsyncCmd { | ||||
| 	public static final Logger s_logger = Logger.getLogger(UpdateStorageNetworkIpRangeCmd.class); | ||||
| 	private static final String s_name = "updatestoragenetworkiprangeresponse"; | ||||
| @ -117,3 +117,4 @@ public class UpdateStorageNetworkIpRangeCmd extends BaseAsyncCmd { | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user