X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FJnetAnnotationMaker.java;h=862b578573a19c62f598e6a02055c980d75f2310;hb=60b22c7b9ccf824a85fa2761e34dfdfba415a8a1;hp=17b4d688d45c94f55b622a10557be9f7d1e00437;hpb=cc0bde4edc7375f46e29c1814238bb765a6882de;p=jalview.git diff --git a/src/jalview/io/JnetAnnotationMaker.java b/src/jalview/io/JnetAnnotationMaker.java index 17b4d68..862b578 100755 --- a/src/jalview/io/JnetAnnotationMaker.java +++ b/src/jalview/io/JnetAnnotationMaker.java @@ -1,4 +1,21 @@ -package jalview.io; +/* +* Jalview - A Sequence Alignment Editor and Viewer +* Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle +* +* This program 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 2 +* of the License, or (at your option) any later version. +* +* This program 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 this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +*/package jalview.io; import jalview.datamodel.*; import java.net.URL; @@ -63,8 +80,8 @@ public class JnetAnnotationMaker { for (int j = 0; j < width; j++) { - float value = Float.parseFloat(preds[i].getCharAt( - j) + ""); + float value = new Float(preds[i].getCharAt( + j) + "").floatValue(); annotations[gapmap[j]] = new Annotation(preds[i].getCharAt( j) + "", "", preds[i].getCharAt(j), value);