spring-cloud/spring-cloud-dataflow

Resolve Deprecations based on recommended resolution

Opened this issue · 0 comments

Update SCDF's usage of the following Deprecated warnings based on the recommendation actions:

  • asList() is deprecated
    • StreamControllerTests
  • configure(com.fasterxml.jackson.databind.MapperFeature, boolean) is deprecated
    • CloudFoundryApplicationManifestReader
  • authorizeRequests() is deprecated
    • OAuthSecurityConfiguration
    • SkipperOAuthSecurityConfiguration
  • trimTrailingWhitespace(java.lang.String) is deprecated since version 6.0
    • DeploymentPropertiesUtils
  • org.springframework.cloud.dataflow.server.converter.StringToDateConverter is deprecated
    • JdbcSearchableJobExecutionDao
  • getWriteCount() is deprecated
    • JobCommands
  • countJobExecutions() is deprecated
    • DefaultTaskJobService 1
  • forIntegers(int, int, int) is deprecated
    • Docker
  • sendEvent(org.springframework.messaging.Message<E>) is deprecated
    • SkipperStateMachineService
    • StateMachineTests
  • countJobExecutionsForJob(java.lang.String, org.springframework.batch.core.BatchStatus) is deprecated
    • DefaultTaskJobService 1
  • getRootCause() is deprecated
    • H2ServerConfigurationTests
  • trimWhitespace(java.lang.String) is deprecated since version 6.0
    • TaskSchedulerController
  • listJobExecutionsForJobWithStepCountFilteredByJobInstanceId(int, int, int) is deprecated
    • DefaultTaskJobService 1
  • listJobExecutionsWithStepCount(int, int) is deprecated
    • DefaultTaskJobService 1
  • getRollbackCount() is deprecated
    • JobCommands
  • org.springframework.cloud.task.listener.TaskExecutionListenerSupport is deprecated
    • ComposedTaskRunnerTaskListener
  • org.springframework.util.concurrent.SettableListenableFuture is deprecated since version 6.0
    • SkipperStateMachineService
  • execute(org.apache.hc.core5.http.ClassicHttpRequest) is deprecated
    • HttpClientTest
  • getRawStatusCode() is deprecated since version 6.0
    • DockerConfigJsonSecretToRegistryConfigurationConverter
  • listJobInstances(java.lang.String, int, int) is deprecated
    • DefaultTaskJobService 1
  • listJobExecutions(int, int) is deprecated
    • DefaultTaskJobService 1
  • PASSWORD is deprecated
    • ManualOAuthAuthenticationProvider
  • org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken is deprecated
    • ManualOAuthAuthenticationProvider
  • greaterThanOrEqualTo(com.github.zafarkhaja.semver.Version) is deprecated
    • DefaultDockerCompose
  • getCommitCount() is deprecated
    • JobCommands
  • org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer is deprecated
    • OAuthSecurityConfiguration
    • SecurityConfigUtils
    • SkipperOAuthSecurityConfiguration
  • waitingForService(java.lang.String, org.springframework.cloud.dataflow.common.test.docker.compose.connection.waiting.HealthCheck<org.springframework.cloud.dataflow.common.test.docker.compose.connection.Container>) is deprecated
    • DockerComposeManager
  • getFilterCount() is deprecated
    • JobCommands
  • withFirstRecordAsHeader() is deprecated
    • CSVLoader
  • write(java.lang.String, java.io.OutputStream) is deprecated
    • FileLogCollectorTests
  • listJobExecutionsForJobWithStepCountFilteredByTaskExecutionId(int, int, int) is deprecated
    • DefaultTaskJobService 1
  • getReadSkipCount() is deprecated
    • JobCommands
  • listJobExecutionsForJobWithStepCount(java.lang.String, int, int) is deprecated
    • DefaultTaskJobService 1
  • extractDatabaseMetaData(javax.sql.DataSource, java.lang.String) is deprecated
    • DatabaseType
    • DerbyPagingQueryProvider
  • password() is deprecated
    • ConfigCommands
    • DataFlowClientAutoConfiguration
    • OAuthSecurityConfiguration
  • Overrides deprecated method in org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator
    • SuppressSQLErrorCodesTranslator
  • KEBAB_CASE is deprecated
    • CloudFoundryApplicationManifestReader
  • customTranslate(java.lang.String, java.lang.String, java.sql.SQLException) is deprecated since version 6.1
    • SuppressSQLErrorCodesTranslator
  • getWriteSkipCount() is deprecated
    • JobCommands
  • getJobExecutionsForJobInstance(java.lang.String, java.lang.Long) is deprecated
    • DefaultTaskJobService 1
  • getProcessSkipCount() is deprecated
    • JobCommands
  • setJobIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer) is deprecated
    • JdbcSearchableJobInstanceDao
    • JobExecutionTestUtils
    • SimpleJobServiceFactoryBean
  • org.springframework.cloud.deployer.spi.kubernetes.KubernetesSchedulerProperties is deprecated
    • KubernetesSchedulerAutoConfiguration
    • SchedulerPerPlatformTest
  • setUseSuffixPatternMatch(java.lang.Boolean) is deprecated
    • TestDependencies
    • WebConfiguration
  • org.springframework.security.oauth2.client.endpoint.OAuth2PasswordGrantRequest is deprecated
    • ManualOAuthAuthenticationProvider
    • OAuthSecurityConfiguration
  • initMocks(java.lang.Object) is deprecated
    • BootApplicationConfigurationMetadataResolverTests
    • DefaultContainerImageMetadataResolverTest
    • DockerConfigJsonSecretToContainerRegistryConfigurationConverterTest
    • DockerConfigJsonSecretToRegistryConfigurationConverterTest
    • StreamDslTests
  • org.springframework.security.oauth2.client.endpoint.DefaultPasswordTokenResponseClient is deprecated
    • OAuthSecurityConfiguration
  • valueOf(java.lang.String) is deprecated
    • CloudFoundryPlatformAutoConfiguration
    • DefaultDockerCompose
    • DockerComposeVersion
    • DockerComposeVersionTests
    • DockerTests
    • PackageService
    • RuntimeApplicationHelper
  • listJobExecutionsForJobWithStepCount(java.util.Date, java.util.Date, int, int) is deprecated
    • DefaultTaskJobService

Second Report

  • AdditionalEnvironmentValidatorTests 1 warning
    • 'none()' is deprecated
  • AppRegistryCommands 1 warning
    • 'register(java.lang.String, org.springframework.cloud.dataflow.core.ApplicationType, java.lang.String, java.lang.String, boolean)' is deprecated
  • AvailablePortMatcherTests 1 warning
    • 'none()' is deprecated
  • AwsEcrAuthorizer 1 warning
    • 'withRegistryIds(java.lang.String...)' is deprecated
  • ClusterWaitTests 1 warning
    • 'none()' is deprecated
  • CommandTests 1 warning
    • 'toInputStream(java.lang.String)' is deprecated
  • ConfigCommands 6 warnings
    • 'isEmpty(java.lang.Object)' is deprecated
    • 'isEmpty(java.lang.Object)' is deprecated
    • 'isEmpty(java.lang.Object)' is deprecated
    • 'isEmpty(java.lang.Object)' is deprecated
    • 'isEmpty(java.lang.Object)' is deprecated
    • 'password()' is deprecated
  • ConflictingContainerRemovingDockerComposeTests 1 warning
    • 'none()' is deprecated
  • ContainerRegistryAutoConfiguration 1 warning
    • 'isEmpty(java.lang.Object)' is deprecated
  • ContainerTests 1 warning
    • 'none()' is deprecated
  • DaemonEnvironmentValidatorTests 1 warning
    • 'none()' is deprecated
  • DataFlowClientAutoConfiguration 1 warning
    • 'password()' is deprecated
  • DataFlowClientException 5 warnings
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors.VndError' is deprecated
  • DataflowClientExceptionTests 10 warnings
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors.VndError' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors.VndError' is deprecated
    • 'VndError(java.lang.String, java.lang.String, org.springframework.hateoas.Link...)' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors.VndError' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors.VndError' is deprecated
    • 'VndError(java.lang.String, java.lang.String, org.springframework.hateoas.Link...)' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
  • DataFlowIT 7 warnings
    • 'register(java.lang.String, org.springframework.cloud.dataflow.core.ApplicationType, java.lang.String, java.lang.String, boolean)' is deprecated
    • 'register(java.lang.String, org.springframework.cloud.dataflow.core.ApplicationType, java.lang.String, java.lang.String, boolean)' is deprecated
    • 'register(java.lang.String, org.springframework.cloud.dataflow.core.ApplicationType, java.lang.String, java.lang.String, boolean)' is deprecated
    • 'register(java.lang.String, org.springframework.cloud.dataflow.core.ApplicationType, java.lang.String, java.lang.String, boolean)' is deprecated
    • 'register(java.lang.String, org.springframework.cloud.dataflow.core.ApplicationType, java.lang.String, java.lang.String, boolean)' is deprecated
    • 'register(java.lang.String, org.springframework.cloud.dataflow.core.ApplicationType, java.lang.String, java.lang.String, boolean)' is deprecated
    • 'register(java.lang.String, org.springframework.cloud.dataflow.core.ApplicationType, java.lang.String, java.lang.String, boolean)' is deprecated
  • DefaultAppRegistryService 1 warning
    • 'isEmpty(java.lang.Object)' is deprecated
  • DeploymentPropertiesUtils 1 warning
    • 'trimTrailingWhitespace(java.lang.String)' is deprecated since version 6.0
  • DockerComposeFilesTests 1 warning
    • 'none()' is deprecated
  • DockerComposeTests 19 warnings
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
  • DockerConfigJsonSecretToRegistryConfigurationConverter 2 warnings
    • 'isEmpty(java.lang.Object)' is deprecated
    • 'isEmpty(java.lang.Object)' is deprecated
  • DockerTests 5 warnings
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
    • 'toInputStream(java.lang.String)' is deprecated
  • KubernetesSchedulerAutoConfiguration 2 warnings
    • 'org.springframework.cloud.deployer.spi.kubernetes.KubernetesSchedulerProperties' is deprecated
    • 'org.springframework.cloud.deployer.spi.kubernetes.KubernetesSchedulerProperties' is deprecated
  • LocalBuilderTests 1 warning
    • 'none()' is deprecated
  • LocalDataflowResource 1 warning
    • 'isEmpty(java.lang.Object)' is deprecated
  • ManualOAuthAuthenticationProvider 5 warnings
    • 'org.springframework.security.oauth2.client.endpoint.OAuth2PasswordGrantRequest' is deprecated
    • 'org.springframework.security.oauth2.client.endpoint.OAuth2PasswordGrantRequest' is deprecated
    • 'PASSWORD' is deprecated
    • 'org.springframework.security.oauth2.client.endpoint.OAuth2PasswordGrantRequest' is deprecated
    • 'org.springframework.security.oauth2.client.endpoint.OAuth2PasswordGrantRequest' is deprecated
  • MonitoringDashboardInfo 1 warning
    • 'isEmpty(java.lang.Object)' is deprecated
  • OAuthClientConfiguration 3 warnings
    • 'org.springframework.security.oauth2.client.endpoint.OAuth2PasswordGrantRequest' is deprecated
    • 'org.springframework.security.oauth2.client.endpoint.DefaultPasswordTokenResponseClient' is deprecated
    • 'org.springframework.security.oauth2.client.endpoint.OAuth2PasswordGrantRequest' is deprecated
  • PackageServiceTests 4 warnings
    • 'isEqualToIgnoringGivenFields(java.lang.Object, java.lang.String...)' is deprecated
    • 'isEqualToIgnoringGivenFields(java.lang.Object, java.lang.String...)' is deprecated
    • 'isEqualToIgnoringGivenFields(java.lang.Object, java.lang.String...)' is deprecated
    • 'isEqualToIgnoringGivenFields(java.lang.Object, java.lang.String...)' is deprecated
  • ProjectNameTests 1 warning
    • 'none()' is deprecated
  • RemoteBuilderTests 1 warning
    • 'none()' is deprecated
  • RemoteEnvironmentValidatorTests 1 warning
    • 'none()' is deprecated
  • RemoteHostIpResolverTests 1 warning
    • 'none()' is deprecated
  • RestControllerAdvice 12 warnings
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
  • SchedulerPerPlatformTest 2 warnings
    • 'org.springframework.cloud.deployer.spi.kubernetes.KubernetesSchedulerProperties' is deprecated
    • 'org.springframework.cloud.deployer.spi.kubernetes.KubernetesSchedulerProperties' is deprecated
  • SimpleJobService 1 warning
    • 'isEmpty(java.lang.Object)' is deprecated
  • SkipperStateMachineService 4 warnings
    • 'sendEvent(org.springframework.messaging.Message)' is deprecated
    • 'org.springframework.util.concurrent.SettableListenableFuture' is deprecated since version 6.0
    • 'org.springframework.util.concurrent.SettableListenableFuture' is deprecated since version 6.0
    • 'sendEvent(org.springframework.messaging.Message)' is deprecated
  • StateMachineTests 1 warning
    • 'sendEvent(org.springframework.messaging.Message)' is deprecated
  • StreamApplication 2 warnings
    • 'isEmpty(java.lang.Object)' is deprecated
    • 'isEmpty(java.lang.Object)' is deprecated
  • StreamDefinition 1 warning
    • 'isEmpty(java.lang.Object)' is deprecated
  • SuppressSQLErrorCodesTranslator 2 warnings
    • Overrides deprecated method in 'org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator'
    • 'customTranslate(java.lang.String, java.lang.String, java.sql.SQLException)' is deprecated since version 6.1
  • TaskLauncherTaskletTests 2 warnings
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
  • TaskServiceUtils 1 warning
    • 'isEmpty(java.lang.Object)' is deprecated
  • TestDependencies 1 warning
    • 'setUseSuffixPatternMatch(java.lang.Boolean)' is deprecated
  • VndErrorResponseErrorHandler 10 warnings
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors.VndError' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors.VndError' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors.VndError' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors.VndError' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
    • 'org.springframework.hateoas.mediatype.vnderrors.VndErrors' is deprecated
  • WebConfiguration 1 warning
    • 'setUseSuffixPatternMatch(java.lang.Boolean)' is deprecated