Skip to content

Conversation

kwondh5217
Copy link
Contributor

Motivation

  • This PR aims to resolve the deprecation warnings in RuntimeHintsAgentPlugin.java.
    Currently, the Gradle build shows the following warning with -Xlint:deprecation:
build/hint/RuntimeHintsAgentPlugin.java:55: warning: [deprecation] <T>create(String,Class<T>,Action<? super T>) in TaskContainer has been deprecated
 Test agentTest = project.getTasks().create(RUNTIMEHINTS_TEST_TASK, Test.class, test -> {
                                    ^
  where T is a type-variable:
    T extends Task declared in method <T>create(String,Class<T>,Action<? super T>)

Modification

  • Replaced project.getTasks().create(...) with project.getTasks().register(...) to avoid using the deprecated API.

Result

Closes gh-34389

Closes spring-projectsgh-34389

Signed-off-by: Daeho Kwon <trewq231@naver.com>
Closes spring-projectsgh-34389

Signed-off-by: Daeho Kwon <trewq231@naver.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 8, 2025
@bclozel bclozel added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 8, 2025
@bclozel bclozel added this to the 6.2.x milestone Feb 8, 2025
@bclozel bclozel closed this in 3548e87 Feb 8, 2025
@bclozel bclozel self-assigned this Feb 8, 2025
@bclozel bclozel modified the milestones: 6.2.x, 6.1.17 Feb 8, 2025
@bclozel
Copy link
Member

bclozel commented Feb 8, 2025

Thanks @kwondh5217 ! I've rebased your change on the 6.2.x branch and applied it.

@bclozel bclozel modified the milestones: 6.1.17, 6.2.3 Feb 8, 2025
@kwondh5217
Copy link
Contributor Author

Thanks @bclozel !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolve deprecation warnings in RuntimeHintsAgentPlugin
3 participants