@@ -63,7 +63,7 @@ public class BranchDiscoveryTrait extends SCMSourceTrait {
6363 /**
6464 * Only branches that are also filed as PRs.
6565 */
66- public static final int ONLYP_RS = 2 ;
66+ public static final int ONLY_PRS = 2 ;
6767 /**
6868 * All branches.
6969 */
@@ -91,7 +91,7 @@ public BranchDiscoveryTrait(int strategyId) {
9191 * @param buildBranchWithPr build branches that are also PRs.
9292 */
9393 public BranchDiscoveryTrait (boolean buildBranch , boolean buildBranchWithPr ) {
94- this .strategyId = (buildBranch ? EXCLUDE_PRS : NONE ) + (buildBranchWithPr ? ONLYP_RS : NONE );
94+ this .strategyId = (buildBranch ? EXCLUDE_PRS : NONE ) + (buildBranchWithPr ? ONLY_PRS : NONE );
9595 }
9696
9797 /**
@@ -120,7 +120,7 @@ public boolean isBuildBranch() {
120120 */
121121 @ Restricted (NoExternalUse .class )
122122 public boolean isBuildBranchesWithPR () {
123- return (strategyId & ONLYP_RS ) != NONE ;
123+ return (strategyId & ONLY_PRS ) != NONE ;
124124 }
125125
126126 /**
@@ -136,7 +136,7 @@ protected void decorateContext(SCMSourceContext<?, ?> context) {
136136 ctx .wantOriginPRs (true );
137137 ctx .withFilter (new ExcludeOriginPRBranchesSCMHeadFilter ());
138138 break ;
139- case BranchDiscoveryTrait .ONLYP_RS :
139+ case BranchDiscoveryTrait .ONLY_PRS :
140140 ctx .wantOriginPRs (true );
141141 ctx .withFilter (new OnlyOriginPRBranchesSCMHeadFilter ());
142142 break ;
@@ -199,7 +199,7 @@ public Class<? extends SCMSource> getSourceClass() {
199199 public ListBoxModel doFillStrategyIdItems () {
200200 ListBoxModel result = new ListBoxModel ();
201201 result .add (Messages .BranchDiscoveryTrait_excludePRs (), String .valueOf (EXCLUDE_PRS ));
202- result .add (Messages .BranchDiscoveryTrait_onlyPRs (), String .valueOf (ONLYP_RS ));
202+ result .add (Messages .BranchDiscoveryTrait_onlyPRs (), String .valueOf (ONLY_PRS ));
203203 result .add (Messages .BranchDiscoveryTrait_allBranches (), String .valueOf (ALL_BRANCHES ));
204204 return result ;
205205 }
0 commit comments