Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(azure): fix incompatible generic type issue faced during upg…
…rade to springboot 2.5.15 While upgrading springboot 2.5.15, encounter below error in clouddriver-azure module: ``` startup failed: /clouddriver/clouddriver-azure/src/main/groovy/com/netflix/spinnaker/clouddriver/azure/client/AzureNetworkClient.groovy: 234: [Static type checking] - Incompatible generic argument types. Cannot assign java.util.List <java.lang.Object> to: java.util.Collection <AzureAppGatewayDescription> @ line 234, column 5. result ^ /clouddriver/clouddriver-azure/src/main/groovy/com/netflix/spinnaker/clouddriver/azure/security/AzureCredentialsInitializer.groovy: 63: [Static type checking] - Incompatible generic argument types. Cannot assign java.util.List <java.lang.Object> to: java.util.List <AzureNamedAccountCredentials> @ line 63, column 5. azureAccounts ^ 2 errors > Task :clouddriver-azure:compileGroovy FAILED ``` To fix this issue use explicit typecasting of relevant variable.
- Loading branch information