Skip to content
Permalink
Browse files

[JENKINS-43507] Prevent java.lang.AbstractMethodError when used as a …

…test dependency against older Jenkins
  • Loading branch information...
stephenc committed Jun 16, 2017
1 parent 88a9020 commit d33e9557ed5b3ead60a1cc239bc8c916705c062c
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/main/java/jenkins/branch/ProjectNameProperty.java
@@ -28,6 +28,7 @@
import com.cloudbees.hudson.plugins.folder.AbstractFolder;
import com.cloudbees.hudson.plugins.folder.AbstractFolderProperty;
import com.cloudbees.hudson.plugins.folder.AbstractFolderPropertyDescriptor;
import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.Extension;
import hudson.model.Descriptor;
import jenkins.scm.api.SCMNavigator;
@@ -48,7 +49,7 @@
*
* @since 2.0.0
*/
public class ProjectNameProperty extends AbstractFolderProperty<MultiBranchProject<?,?>> {
public class ProjectNameProperty extends AbstractFolderProperty<MultiBranchProject<?, ?>> {

private final String name;

@@ -67,6 +68,12 @@ public String getName() {

@Extension
public static class DescriptorImpl extends AbstractFolderPropertyDescriptor {
@NonNull
@Override
public String getDisplayName() {
return "Project name";
}

@Override
public boolean isApplicable(Class<? extends AbstractFolder> containerType) {
return MultiBranchProject.class.isAssignableFrom(containerType);

0 comments on commit d33e955

Please sign in to comment.
You can’t perform that action at this time.