Example #1
0
 /** Backward-compatible way of getting {@code getOwner().getItemGroup()} */
 public ItemGroup<? extends TopLevelItem> getOwnerItemGroup() {
   try {
     return owner.getItemGroup();
   } catch (AbstractMethodError e) {
     return Jenkins.getInstance();
   }
 }
Example #2
0
 /**
  * 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();
 }