Skip to content
Permalink
Browse files

Merge pull request #21 from daspilker/JENKINS-30951

[JENKINS-30951] implement ModifiableViewGroup instead of ViewGroup
  • Loading branch information...
jglick committed Oct 20, 2015
2 parents 4c12c6b + 722650d commit 0f56c51fd6e1060be0bf40bde740ba77a123f388
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/com/cloudbees/hudson/plugins/folder/AbstractFolder.java
@@ -48,6 +48,7 @@
import static hudson.model.ItemGroupMixIn.loadChildren;
import hudson.model.Items;
import hudson.model.Job;
import hudson.model.ModifiableViewGroup;
import hudson.model.TopLevelItem;
import hudson.model.View;
import hudson.model.ViewGroup;
@@ -112,7 +113,7 @@
* @since FIXME
*/
@SuppressWarnings({"unchecked", "rawtypes"}) // mistakes in various places
public abstract class AbstractFolder<I extends TopLevelItem> extends AbstractItem implements TopLevelItem, ItemGroup<I>, ViewGroup, StaplerFallback, ModelObjectWithChildren, StaplerOverridable {
public abstract class AbstractFolder<I extends TopLevelItem> extends AbstractItem implements TopLevelItem, ItemGroup<I>, ModifiableViewGroup, StaplerFallback, ModelObjectWithChildren, StaplerOverridable {

private static final Logger LOGGER = Logger.getLogger(AbstractFolder.class.getName());

@@ -344,6 +345,7 @@ public String getPronoun() {
return r;
}

@Override
public void addView(View v) throws IOException {
viewGroupMixIn.addView(v);
}

0 comments on commit 0f56c51

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