X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FSparseCount.java;h=2e9436b1bdaa558d2ccc1375df2efb4a51c94b86;hb=1a7569b26f3f24011b33f0551ecbf5377b1fb85b;hp=e6b45f205af5bdc429540c29594489257fab2982;hpb=1c757dc1e6ee864277825c1ebd9c6a9fbe0da7b2;p=jalview.git diff --git a/src/jalview/util/SparseCount.java b/src/jalview/util/SparseCount.java index e6b45f2..2e9436b 100644 --- a/src/jalview/util/SparseCount.java +++ b/src/jalview/util/SparseCount.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 . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.util; import jalview.ext.android.SparseIntArray; @@ -65,9 +85,11 @@ public class SparseCount } else { - try { + try + { newValue = shortProfile.add(key, value); - } catch (ArithmeticException e) { + } catch (ArithmeticException e) + { handleOverflow(); newValue = intProfile.add(key, value); }