Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JENKINS-43507] Findbugs catches bugs again!!!
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+2
−1
src/main/java/jenkins/scm/api/trait/SCMHeadAuthority.java
|
@@ -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); |
|
|
} |
|
|
|
|
|
/** |
|
@@ -141,6 +141,7 @@ public final boolean isTrusted(@NonNull SCMSourceRequest request, @CheckForNull |
|
|
* @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()); |
|
|