Skip to content

Commit

Permalink
Merge pull request #21 from daspilker/JENKINS-30951
Browse files Browse the repository at this point in the history
[JENKINS-30951] implement ModifiableViewGroup instead of ViewGroup
  • Loading branch information
jglick committed Oct 20, 2015
2 parents 4c12c6b + 722650d commit 0f56c51
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 0f56c51

Please sign in to comment.