X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fext%2Fandroid%2FSparseShortArray.java;h=6cd8019dc47754f25dab214546dd1f683c7c8403;hb=6b8b09f3812bc5560843f4d44589066c749c63f8;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..6cd8019 100644
--- a/src/jalview/ext/android/SparseShortArray.java
+++ b/src/jalview/ext/android/SparseShortArray.java
@@ -1,3 +1,23 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ *
+ * This file is part of Jalview.
+ *
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * Jalview is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see valueAt(int)
.
*
- * 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 {