- * @return OtherData\r
- */\r
- public jalview.schemabinding.version2.OtherData getOtherData(int index)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- //-- check bounds for index\r
- if ((index < 0) || (index > _otherDataList.size())) {\r
- throw new IndexOutOfBoundsException();\r
+ * @throws java.lang.IndexOutOfBoundsException if the index\r
+ * given is outside the bounds of the collection\r
+ * @return the value of the\r
+ * jalview.schemabinding.version2.OtherData at the given index\r
+ */\r
+ public jalview.schemabinding.version2.OtherData getOtherData(\r
+ final int index)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ // check bounds for index\r
+ if (index < 0 || index >= this._otherDataList.size()) {\r
+ throw new IndexOutOfBoundsException("getOtherData: Index value '" + index + "' not in range [0.." + (this._otherDataList.size() - 1) + "]");\r