Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-43507] Findbugs catches bugs again!!!
  • Loading branch information
stephenc committed May 4, 2017
1 parent f3a4658 commit de0ad6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/jenkins/scm/api/trait/SCMHeadAuthority.java
Expand Up @@ -116,7 +116,7 @@ public final boolean isTrusted(@NonNull SCMSourceRequest request, @CheckForNull
return isApplicableTo(request)
&& isApplicableTo(revision.getHead())
&& isApplicableTo(revision)
&& checkTrusted((S) request, (H) revision);
&& checkTrusted((S) request, (R) revision);
}

/**
Expand All @@ -141,6 +141,7 @@ && isApplicableTo(revision)
* @throws IOException if there was an I/O error trying to establish the trust status.
* @throws InterruptedException if interrupted while trying to establing the trust status.
*/
@SuppressWarnings("unchecked")
@OverrideMustInvoke
protected boolean checkTrusted(@NonNull S request, @NonNull R revision) throws IOException, InterruptedException {
return checkTrusted(request, (H) revision.getHead());
Expand Down

0 comments on commit de0ad6a

Please sign in to comment.