- * @return Features\r
- */\r
- public jalview.schemabinding.version2.Features getFeatures(int index)\r
- throws java.lang.IndexOutOfBoundsException\r
- {\r
- //-- check bounds for index\r
- if ((index < 0) || (index > _featuresList.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.Features at the given index\r
+ */\r
+ public jalview.schemabinding.version2.Features getFeatures(\r
+ final int index)\r
+ throws java.lang.IndexOutOfBoundsException {\r
+ // check bounds for index\r
+ if (index < 0 || index >= this._featuresList.size()) {\r
+ throw new IndexOutOfBoundsException("getFeatures: Index value '" + index + "' not in range [0.." + (this._featuresList.size() - 1) + "]");\r