Prevent possible NullPointerException in ValidatorFactoryScopedContext.Builder

Description

As lgtm suggest, there's a possibility of null exception in the Builder. But based on the usage of the builder and the logic that was replaced by this same builder the default context cannot be null. Hence the first check in Builder's constructor should be removed and replaced with a Contracts assertion.

Environment

None

Status

Assignee

Marko Bekhta

Reporter

Marko Bekhta

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Trivial
Configure