Skip to content

Commit

Permalink
implement ModifiableViewGroup instead of ViewGroup
Browse files Browse the repository at this point in the history
[FIXES JENKINS-30951]
  • Loading branch information
daspilker committed Oct 20, 2015
1 parent 4c12c6b commit 722650d
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -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;
Expand Down Expand Up @@ -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());

Expand Down Expand Up @@ -344,6 +345,7 @@ public Collection<?> getOverrides() {
return r;
}

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

0 comments on commit 722650d

Please sign in to comment.