X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FPhylipFile.java;h=754288422ed37a68ba6abd8e31ff0227d16cea9c;hb=a9177efb4097815d9a8031aa22700c61a7d6260a;hp=539826ffb31d811c2a6e3e39a7219386ca7524cd;hpb=f4766a7bbcfae845fc95923b01fa14ff83d589ff;p=jalview.git diff --git a/src/jalview/io/PhylipFile.java b/src/jalview/io/PhylipFile.java index 539826f..7542884 100644 --- a/src/jalview/io/PhylipFile.java +++ b/src/jalview/io/PhylipFile.java @@ -188,7 +188,7 @@ public class PhylipFile extends AlignFile } catch (IOException e) { - System.err.println("Exception parsing PHYLIP file " + e); + jalview.bin.Console.errPrintln("Exception parsing PHYLIP file " + e); e.printStackTrace(System.err); throw e; } @@ -247,9 +247,7 @@ public class PhylipFile extends AlignFile StringBuffer sb = new StringBuffer(Integer.toString(sqs.length)); sb.append(" "); // if there are no sequences, then define the number of characters as 0 - sb.append( -(sqs.length > 0) ? Integer.toString(sqs[0].getLength()) - : "0") + sb.append((sqs.length > 0) ? Integer.toString(sqs[0].getLength()) : "0") .append(newline); // Due to how IO is handled, there doesn't appear to be a way to store