Skip to content

Commit

Permalink
Fix binary compatibility for PullRequestSCMRevision.getPull (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsandell authored Feb 28, 2024
1 parent 857269a commit bbd5243
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.infradna.tool</groupId>
<artifactId>bridge-method-annotation</artifactId>
<version>1.29</version>
</dependency>
</dependencies>

<repositories>
Expand Down Expand Up @@ -218,6 +223,18 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.infradna.tool</groupId>
<artifactId>bridge-method-injector</artifactId>
<version>1.29</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@

package com.cloudbees.jenkins.plugins.bitbucket;

import com.infradna.tool.bridge_method_injector.WithBridgeMethods;
import edu.umd.cs.findbugs.annotations.NonNull;
import jenkins.plugins.git.AbstractGitSCMSource;
import jenkins.scm.api.SCMRevision;
import jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy;
import jenkins.scm.api.mixin.ChangeRequestSCMRevision;

Expand Down Expand Up @@ -64,7 +66,7 @@ public PullRequestSCMRevision(@NonNull PullRequestSCMHead head, @NonNull Abstrac
*
* @return the pull revision.
*/
@NonNull
@NonNull @WithBridgeMethods(SCMRevision.class)
public AbstractGitSCMSource.SCMRevisionImpl getPull() {
return pull;
}
Expand Down

0 comments on commit bbd5243

Please sign in to comment.