Details
-
Bug
-
Resolution: Done
-
Major
-
2.0.3.Final
-
None
Description
The null check checks the field being assigned instead of the param passed in:
public Parameters setDeprecatedSince(ModelVersion deprecatedSince) { if (deprecationData == null) { // <-- OOPS! throw ControllerLogger.ROOT_LOGGER.nullVar("deprecatedSince"); } this.deprecationData = new DeprecationData(deprecatedSince);
The field will always be null, making this method useless.
Attachments
Issue Links
- is cloned by
-
JBEAP-2069 Incorrect null check in SimpleResourceDefinition.Parameter.setDeprecatedSince
- Closed