X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Fandroid%2FSparseShortArray.java;h=f961f55f3621d9de5b238a0a4f056d5176ed6276;hb=d97c2767c7c931f5f98104714db5a49f817f932e;hp=375d74559406db37680852e97e77c5ed96eda2ae;hpb=1c757dc1e6ee864277825c1ebd9c6a9fbe0da7b2;p=jalview.git diff --git a/src/jalview/ext/android/SparseShortArray.java b/src/jalview/ext/android/SparseShortArray.java index 375d745..f961f55 100644 --- a/src/jalview/ext/android/SparseShortArray.java +++ b/src/jalview/ext/android/SparseShortArray.java @@ -40,12 +40,15 @@ package jalview.ext.android; * order in the case of valueAt(int). *

*/ -/** - * A copy of SparseShortArray designed to store short values (to minimise space - * usage). + +/* + * Added to Jalview September 2016. A copy of SparseIntArray designed to store + * short values (to minimise space usage). *

- * Note that operations append, put, add throw ArithmeticException if the - * resulting value overflows the range of a short. + * Note that operations append, put, add throw ArithmeticException if either the + * key or the resulting value overflows the range of a short. Calling code + * should trap and handle this, for example by switching to using a + * SparseIntArray instead. */ public class SparseShortArray implements Cloneable {