Skip to content

Commit

Permalink
[JENKINS-33683] Annotate Function#getActionUrl() as well
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Mar 22, 2016
1 parent 4c02f1d commit 8fdca29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/hudson/Functions.java
Expand Up @@ -1537,8 +1537,10 @@ public static String joinPath(String... components) {
/**
* Computes the hyperlink to actions, to handle the situation when the {@link Action#getUrlName()}
* returns absolute URL.
*
* @return null in case the action should not be presented to the user.
*/
public static String getActionUrl(String itUrl,Action action) {
public static @CheckForNull String getActionUrl(String itUrl,Action action) {
String urlName = action.getUrlName();
if(urlName==null) return null; // Should not be displayed
try {
Expand Down

0 comments on commit 8fdca29

Please sign in to comment.