Skip to content

Skip nullness check for Map-like return types of @BatchMapping methods #1334

@iyanging

Description

@iyanging

The current implementation of checkDataFetcherNullness() only validates nullability for method return types, which fails to properly handle @BatchMapping methods that return Map<Parent, Field> (no other annotations).

As a workaround, I currently need to annotate @BatchMapping return types with @Nullable (e.g., @Nullable Map<Parent, Field>) to suppress these false positives.

Is there any plan to reduce these false positive warnings?

Metadata

Metadata

Assignees

Labels

in: coreIssues related to config and core supporttype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions