Export to GitHub

doclava - issue #55

droiddoc is not inheriting doc from an interface


Posted on Jul 11, 2012 by Helpful Giraffe

(was Google internal bug 4322817...)

The doc for http://developer.android.com/reference/android/widget/ArrayAdapter.html#getItem(int) is empty.

The source says: /** * {@inheritDoc} */ public T getItem(int position) { return mObjects.get(position); }

Perhaps it should have been an error to inherit empty doc?

In any case, it should be searching harder to find doc to inherit. In this case, it could be found ArrayAdapter -> super BaseAdapter -> implements ListAdapter -> implements Adapter, which is where getItem doc can be found:

/** * Get the data item associated with the specified position in the data set. * * @param position Position of the item whose data we want within the adapter's * data set. * @return The data at the specified position. */ Object getItem(int position);

Status: New

Labels:
Type-Defect Priority-Medium