Skip to content

Commit 3943156

Browse files
committed
restrict and make category private
1 parent f9c4711 commit 3943156

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
7171
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
7272
<jenkins.baseline>2.479</jenkins.baseline>
73-
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
73+
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
7474

7575
<hpi.compatibleSinceVersion>2.0.0</hpi.compatibleSinceVersion>
7676
<no-test-jar>false</no-test-jar>

src/main/java/jenkins/branch/BaseView.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
import hudson.security.Permission;
99
import java.io.IOException;
1010
import jenkins.scm.api.SCMCategory;
11+
import org.kohsuke.accmod.Restricted;
12+
import org.kohsuke.accmod.restrictions.NoExternalUse;
1113
import org.springframework.security.core.Authentication;
1214

15+
@Restricted(NoExternalUse.class)
1316
public abstract class BaseView<T extends SCMCategory<?>> extends ListView {
1417

15-
protected final T category;
18+
private final T category;
1619

1720
public BaseView(ViewGroup owner, @NonNull T category) {
1821
super(category.getName(), owner);

0 commit comments

Comments
 (0)