Permalink
Please sign in to comment.
Browse files
[FIX JENKINS-46122] Report base class name when symbol couldn't be re…
…solved
- Loading branch information...
Showing
with
39 additions
and 1 deletion.
@@ -0,0 +1,27 @@ | |||
package org.jenkinsci.plugins.structs; | |||
|
|||
import hudson.Extension; | |||
import hudson.model.AbstractDescribableImpl; | |||
import hudson.model.Descriptor; | |||
import org.jenkinsci.Symbol; | |||
import org.kohsuke.stapler.DataBoundConstructor; | |||
|
|||
/** | |||
* "rod" symbol | |||
* | |||
* @author Kohsuke Kawaguchi | |||
*/ | |||
public class FishingRod extends AbstractDescribableImpl<FishingRod> implements Fishing { | |||
@DataBoundConstructor | |||
public FishingRod() { | |||
} | |||
|
|||
|
|||
@Extension @Symbol("rod") | |||
public static class DescriptorImpl extends Descriptor<FishingRod> { | |||
@Override | |||
public String getDisplayName() { | |||
return "fishing rod"; | |||
} | |||
} | |||
} |
0 comments on commit
25aa7a8