X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Fandroid%2FSparseShortArray.java;fp=src%2Fjalview%2Fext%2Fandroid%2FSparseShortArray.java;h=f961f55f3621d9de5b238a0a4f056d5176ed6276;hb=fbc92d8f171f75002890bfa0ea1f436f7125d3b5;hp=375d74559406db37680852e97e77c5ed96eda2ae;hpb=2466e94aa67b0559bd5c4c6e17d60b6fac3cb756;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 {