loadtime = -System.currentTimeMillis();
AlignmentI al = null;
- if (format == FileFormat.Jalview)
+ if (FileFormat.Jalview.equals(format))
{
if (source != null)
{
if (source != null)
{
// read from the provided source
- al = new FormatAdapter().readFromFile(source, format);
+ al = new FormatAdapter().readFromFile(source, format);
}
else
{