Skip to content

Clean build triggers a compilation warning #4057

@snicoll

Description

@snicoll

In what version(s) of Spring for Apache Kafka are you seeing this issue?

main

Describe the bug

That's not really a bug but the project does not build cleanly:

To Reproduce

Invoking ./gradlew :spring-kafka:compileJava --rerun-tasks leads to:

> Task :spring-kafka:compileJava
/Users/snicoll/workspace/work/spring-kafka/spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java:553: warning: [try] auto-closeable resource scope is never referenced in body of corresponding try statement
                        try (var scope = observation.openScope()) {
                                 ^
1 warning

This was added in June so I wonder what's going on.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions