mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 10:36:21 +00:00
Merge pull request #1661 from deadmoose/deprecated_annotations
Add @Deprecated annotations to things documented as @deprecated.
This commit is contained in:
commit
fd42e33d61
138 files changed
+373
-3
No files matched your search
@@ -438,6 +438,7 @@ public class Functions {
|
||||
* JEXL now supports the real ternary operator "x?y:z", so this work around
|
||||
* is no longer necessary.
|
||||
*/
|
||||
@Deprecated
|
||||
public static Object ifThenElse(boolean cond, Object thenValue, Object elseValue) {
|
||||
return cond ? thenValue : elseValue;
|
||||
}
|
||||
@@ -1573,6 +1574,7 @@ public class Functions {
|
||||
* @deprecated
|
||||
* Use {@link #calcCheckUrl}
|
||||
*/
|
||||
@Deprecated
|
||||
public String getCheckUrl(String userDefined, Object descriptor, String field) {
|
||||
if(userDefined!=null || field==null) return userDefined;
|
||||
if (descriptor instanceof Descriptor) {
|
||||
@@ -1823,6 +1825,7 @@ public class Functions {
|
||||
* @deprecated as of 1.451
|
||||
* Use {@link #getAvatar}
|
||||
*/
|
||||
@Deprecated
|
||||
public String getUserAvatar(User user, String avatarSize) {
|
||||
return getAvatar(user,avatarSize);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user