X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FJPredFile.java;h=6732e8281694dc8e8f963493af5ab1be97e5e8b8;hb=cbeb7ad59d51b468c54ca3db2a2a7693060a2509;hp=451ece808444c0d4dbbdf9f2a8622a7987991cc6;hpb=ee198b3ca3687f18a2ee186f4e7c7330f4ea30f0;p=jalview.git diff --git a/src/jalview/io/JPredFile.java b/src/jalview/io/JPredFile.java index 451ece8..6732e82 100755 --- a/src/jalview/io/JPredFile.java +++ b/src/jalview/io/JPredFile.java @@ -207,7 +207,7 @@ public class JPredFile extends AlignFile { ascore = symbols.nextToken(); - Float score = new Float(ascore); + Float score = Float.valueOf(ascore); scores.addElement(score); } @@ -219,8 +219,8 @@ public class JPredFile extends AlignFile for (int j = 0; j < i; j++) { - scores.setElementAt( - ((Float) scores.elementAt(j)).toString(), j); + scores.setElementAt(((Float) scores.elementAt(j)).toString(), + j); } scores.addElement(ascore); @@ -283,7 +283,7 @@ public class JPredFile extends AlignFile seq_entries.addElement(newseq.toString()); ids.addElement(id); - Symscores.put(id, new Integer(ids.size() - 1)); + Symscores.put(id, Integer.valueOf(ids.size() - 1)); } } } @@ -299,20 +299,20 @@ public class JPredFile extends AlignFile { // Add all sequence like objects Sequence newSeq = new Sequence(ids.elementAt(i).toString(), - seq_entries.elementAt(i).toString(), 1, seq_entries - .elementAt(i).toString().length()); + seq_entries.elementAt(i).toString(), 1, + seq_entries.elementAt(i).toString().length()); if (maxLength != seq_entries.elementAt(i).toString().length()) { - throw new IOException( - MessageManager - .formatMessage( - "exception.jpredconcide_entry_has_unexpected_number_of_columns", - new String[] { ids.elementAt(i).toString() })); + throw new IOException(MessageManager.formatMessage( + "exception.jpredconcide_entry_has_unexpected_number_of_columns", + new String[] + { ids.elementAt(i).toString() })); } - if ((newSeq.getName().startsWith("QUERY") || newSeq.getName() - .startsWith("align;")) && (QuerySeqPosition == -1)) + if ((newSeq.getName().startsWith("QUERY") + || newSeq.getName().startsWith("align;")) + && (QuerySeqPosition == -1)) { QuerySeqPosition = seqs.size(); } @@ -332,11 +332,10 @@ public class JPredFile extends AlignFile } catch (Exception e) { tal = null; - IOException ex = new IOException( - MessageManager - .formatMessage( - "exception.couldnt_parse_concise_annotation_for_prediction", - new String[] { e.getMessage() })); + IOException ex = new IOException(MessageManager.formatMessage( + "exception.couldnt_parse_concise_annotation_for_prediction", + new String[] + { e.getMessage() })); e.printStackTrace(); // java 1.1 does not have : // ex.setStackTrace(e.getStackTrace()); throw ex; @@ -356,7 +355,7 @@ public class JPredFile extends AlignFile * @return String */ @Override - public String print() + public String print(SequenceI[] sqs, boolean jvsuffix) { return "Not Supported"; }