You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-23339] Introduce the validated version of Jenkins:getInstance() #23168
Currently, the 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.
I propose to...
Add an additional method (e.g. Jenkins::getActiveInstance()), which throws an exception on access errors
Convert all non-checked Jenkins::getInstance() methods
Currently, the 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.
I propose to...
Add an additional method (e.g. Jenkins::getActiveInstance()), which throws an exception on access errors
Convert all non-checked Jenkins::getInstance() methods
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()
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()
Activity
jenkins-infra-bot commentedon Nov 7, 2014
Raw content of original comment:
Code changed in jenkins
User: Oleg Nenashev
Path:
core/src/main/java/hudson/model/Hudson.java
core/src/main/java/jenkins/model/Jenkins.java
http://jenkins-ci.org/commit/jenkins/e6c2e16f7a1e2487a1d201aa11ae0c44e75a6ad7
Log:
[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: Oleg Nenashev
jenkins-infra-bot commentedon Nov 7, 2014
Raw content of original comment:
Code changed in jenkins
User: Jesse Glick
Path:
core/src/main/java/hudson/model/Hudson.java
core/src/main/java/jenkins/model/Jenkins.java
http://jenkins-ci.org/commit/jenkins/bfa557b16af80f8451980452a3dff97643138614
Log:
Merge branch '
JENKINS-23339' of github.com:synopsys-arc-oss/jenkinsjenkins-infra-bot commentedon Nov 7, 2014
Raw content of original comment:
Integrated in
jenkins_main_trunk #3802
[FIXED JENKINS-23339] - Introduce the validated Jenkins::getActiveInstance() method (Revision e6c2e16)
Result = SUCCESS
o.v.nenashev : e6c2e16f7a1e2487a1d201aa11ae0c44e75a6ad7
Files :