X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FMainPanelEdit.java;h=0728da1a1ad47744ee4475fe4cd148eee7cbe636;hb=775c5ac0371ef0cfc3c4f34a2719903fa228e9e0;hp=b2b7bdd4379f76e68101c6bd21937477283b1e58;hpb=ccf4c584032d16ed0ed8d0678f01305887724f96;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/MainPanelEdit.java b/forester/java/src/org/forester/archaeopteryx/MainPanelEdit.java index b2b7bdd..0728da1 100644 --- a/forester/java/src/org/forester/archaeopteryx/MainPanelEdit.java +++ b/forester/java/src/org/forester/archaeopteryx/MainPanelEdit.java @@ -5,7 +5,7 @@ // Copyright (C) 2010 Christian M Zmasek // Copyright (C) 2010 Sanford-Burnham Medical Research Institute // All rights reserved -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either @@ -15,7 +15,7 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA @@ -66,15 +66,13 @@ public class MainPanelEdit implements Runnable { if ( ( node.getNodeData().getSequences() != null ) && !node.getNodeData().getSequences().isEmpty() ) { for( final Sequence seq : node.getNodeData().getSequences() ) { if ( ( ( seq.getAccession() != null ) && !ForesterUtil.isEmpty( seq.getAccession().getValue() ) && ( seq - .getAnnotations() == null ) ) - || seq.getAnnotations().isEmpty() ) { + .getAnnotations() == null ) ) || seq.getAnnotations().isEmpty() ) { final Accession acc = seq.getAccession(); try { final URL url = new URL( "http://www.ebi.ac.uk/QuickGO/GAnnotation?protein=" + acc.getValue() + "&format=tsv" ); final HttpURLConnection url_connection = ( HttpURLConnection ) url.openConnection(); - final BufferedReader br = new BufferedReader( new InputStreamReader( url_connection - .getInputStream() ) ); + final BufferedReader br = new BufferedReader( new InputStreamReader( url_connection.getInputStream() ) ); final List columns = Arrays.asList( br.readLine().split( "\t" ) ); System.out.println( columns ); final int db_index = columns.indexOf( DB );