Program: 95425
Project: 95425
Buggy source:
/** 
 * @param objectToAdapt the object to adapt
 * @return the component adapter
 */
private IComponent getComponentAdapter(Object objectToAdapt){
  if (objectToAdapt instanceof MenuButton) {
    return new MenuButtonAdapter((MenuButton)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ButtonBase) {
    return new ButtonBaseAdapter((ButtonBase)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Label) {
    return new LabeledAdapter<Label>((Label)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Text) {
    return new TextAdapter((Text)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TextInputControl) {
    return new TextComponentAdapter((TextInputControl)objectToAdapt);
  }
 else   if (objectToAdapt instanceof DatePicker) {
    return new DatePickerAdapter((DatePicker)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TreeView) {
    return new TreeViewAdapter((TreeView<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TableView) {
    return new TableAdapter((TableView<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ContextMenu) {
    return new ContextMenuAdapter((ContextMenu)objectToAdapt);
  }
 else   if (objectToAdapt instanceof MenuBar) {
    return new MenuBarAdapter((MenuBar)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ImageView) {
    return new JavaFXComponentAdapter<ImageView>((ImageView)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TitledPane) {
    return new LabeledAdapter<TitledPane>((TitledPane)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ListView) {
    return new ListViewAdapter<ListView<?>>((ListView<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ComboBox) {
    return new ComboBoxAdapter<ComboBox<?>>((ComboBox<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ChoiceBox) {
    return new ChoiceBoxAdapter((ChoiceBox<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Accordion) {
    return new AccordionAdapter((Accordion)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TreeTableView) {
    return new TreeTableViewAdapter((TreeTableView<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Cell) {
    return new CellAdapter((Cell<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Slider) {
    return new SliderAdapter((Slider)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Shape) {
    return new JavaFXComponentAdapter<Shape>((Shape)objectToAdapt);
  }
  return null;
}

Fixed version (ground truth):
/** 
 * @param objectToAdapt the object to adapt
 * @return the component adapter
 */
private IComponent getComponentAdapter(Object objectToAdapt){
  if (objectToAdapt instanceof MenuButton) {
    return new MenuButtonAdapter((MenuButton)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ButtonBase) {
    return new ButtonBaseAdapter((ButtonBase)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Label) {
    return new LabeledAdapter<Label>((Label)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Text) {
    return new TextAdapter((Text)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TextInputControl) {
    return new TextComponentAdapter((TextInputControl)objectToAdapt);
  }
 else   if (objectToAdapt instanceof DatePicker) {
    return new DatePickerAdapter((DatePicker)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TreeView) {
    return new TreeViewAdapter((TreeView<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TableView) {
    return new TableAdapter((TableView<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ContextMenu) {
    return new ContextMenuAdapter((ContextMenu)objectToAdapt);
  }
 else   if (objectToAdapt instanceof MenuBar) {
    return new MenuBarAdapter((MenuBar)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ImageView) {
    return new JavaFXComponentAdapter<ImageView>((ImageView)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TabPane) {
    return new TabPaneAdapter((TabPane)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TitledPane) {
    return new LabeledAdapter<TitledPane>((TitledPane)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ListView) {
    return new ListViewAdapter<ListView<?>>((ListView<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ComboBox) {
    return new ComboBoxAdapter<ComboBox<?>>((ComboBox<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ChoiceBox) {
    return new ChoiceBoxAdapter((ChoiceBox<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Accordion) {
    return new AccordionAdapter((Accordion)objectToAdapt);
  }
 else   if (objectToAdapt instanceof TreeTableView) {
    return new TreeTableViewAdapter((TreeTableView<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Cell) {
    return new CellAdapter((Cell<?>)objectToAdapt);
  }
 else   if (objectToAdapt instanceof SplitPane) {
    return new SplitPaneAdapter((SplitPane)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Slider) {
    return new SliderAdapter((Slider)objectToAdapt);
  }
 else   if (objectToAdapt instanceof ToolBar) {
    return new ToolBarAdapter((ToolBar)objectToAdapt);
  }
 else   if (objectToAdapt instanceof Shape) {
    return new JavaFXComponentAdapter<Shape>((Shape)objectToAdapt);
  }
  return null;
}