Skip to content

Commit e8b800b

Browse files
authored
Follow up of PR #2662 to fix compilation (#2663)
Signed-off-by: Olivier Lamy <[email protected]>
1 parent f704153 commit e8b800b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blueocean-rest-impl/src/main/java/io/jenkins/blueocean/service/embedded/OrganizationFactoryImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import io.jenkins.blueocean.rest.model.BlueOrganization;
77
import io.jenkins.blueocean.service.embedded.rest.OrganizationImpl;
88
import jenkins.model.Jenkins;
9+
import jenkins.model.ModifiableTopLevelItemGroup;
910
import org.apache.commons.lang.StringUtils;
1011

1112
import java.util.Collection;
@@ -40,7 +41,7 @@ public OrganizationFactoryImpl() {
4041
public OrganizationFactoryImpl(String name) {
4142
if (ROOT_FOLDER_NAME != null) {
4243
var root = Jenkins.get().getItemByFullName(ROOT_FOLDER_NAME);
43-
if (root instanceof ItemGroup<?> group) {
44+
if (root instanceof ModifiableTopLevelItemGroup group) {
4445
this.instance = new OrganizationImpl(name, group);
4546
} else {
4647
LOG.warning(() -> "Specified BLUE_ORGANIZATION_ROOT_FOLDER '" + ROOT_FOLDER_NAME + "' not found, or not a Folder. Falling back to Jenkins root folder.");

0 commit comments

Comments
 (0)