/** Backward-compatible way of getting {@code getOwner().getItemGroup()} */ public ItemGroup<? extends TopLevelItem> getOwnerItemGroup() { try { return owner.getItemGroup(); } catch (AbstractMethodError e) { return Jenkins.getInstance(); } }
/** * A pointless function to work around what appears to be a HotSpot problem. See JENKINS-5756 and * bug 6933067 on BugParade for more details. */ private ItemGroup<? extends TopLevelItem> _getOwnerItemGroup() { return owner.getItemGroup(); }