method contract inconsistent with annotations

Description

SAMLMetadataSupport.getDescriptorExtensions has comments implying that its parameters are never null. However, if that contract is violated by the caller the method simply returns null, and the parameters are actually annotated as @Nullable.

I can't see a benefit to this approach; it makes more sense to simply annotate and enforce a @Nonnull constraint on both parameters.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created October 5, 2016 at 8:24 AM
Updated May 16, 2024 at 12:37 PM
Resolved April 26, 2017 at 3:48 PM