Skip to content
Commit e6c2e16f authored by Oleg Nenashev's avatar Oleg Nenashev
Browse files

[FIXED JENKINS-23339] - Introduce the validated Jenkins::getActiveInstance() method



jenkins.model.Jenkins::getInstance() method is marked as @CheckForNull, but the most of Jenkins code does not actually check the return value. It leads to tons of static analysis errors, hence it is hard to analyze the code.

The change also adds annotations to old methods like Hudson::getInstance()

Signed-off-by: default avatarOleg Nenashev <o.v.nenashev@gmail.com>
parent 9ce6b0fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment