JENKINS-34857 tracks an abortive attempt to make Jenkins.getInstance throw IllegalStateException as it is documented to do. While fixes like JENKINS-48543 could make that possible, it is safer and more straightforward to have one nondeprecated method which is @CheckForNull (but rarely used) and one nondeprecated method which is @Nonnull (and recommended for most callers).
- relates to
-
JENKINS-34857 FATAL: Jenkins has not been started, or was already shut down
-
- Resolved
-
-
JENKINS-48543 Avoid slave → master callables
-
- In Review
-
- links to
[JENKINS-48638] Simplified/clarified Jenkins.getInstance
Link |
New:
This issue relates to |
Link | New: This issue relates to JENKINS-48543 [ JENKINS-48543 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "PR 3195 (Web Link)" [ 19501 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Code changed in jenkins
User: Jesse Glick
Path:
core/src/main/java/hudson/model/Hudson.java
core/src/main/java/jenkins/model/Jenkins.java
core/src/main/resources/META-INF/upgrade/Hudson.hint
core/src/main/resources/META-INF/upgrade/Jenkins.hint
http://jenkins-ci.org/commit/jenkins/001a33c747feb437a1bf5f0349b6988f517ec9a8
Log:
JENKINS-48638Deprecate Jenkins.getInstance in favor of (usually) get (#3195)