todo comments
[jalview.git] / src / jalview / datamodel / xdb / embl / EmblEntry.java
index a1c4c3c..350c44e 100644 (file)
@@ -387,11 +387,12 @@ public class EmblEntry
    */
   public jalview.datamodel.SequenceI[] getSequences(boolean noNa,
           boolean noPeptide, String sourceDb)
-  {
+  { //TODO: ensure emblEntry.getSequences behaves correctly for returning all cases of noNa and noPeptide
     Vector seqs = new Vector();
     Sequence dna = null;
     if (!noNa)
     {
+      // In theory we still need to create this if noNa is set to avoid a null pointer exception
       dna = new Sequence(sourceDb + "|" + accession, sequence.getSequence());
       dna.setDescription(desc);
       dna.addDBRef(new DBRefEntry(sourceDb, version, accession));
@@ -399,8 +400,8 @@ public class EmblEntry
       // TODO: transform EMBL Database refs to canonical form
       if (dbRefs != null)
         for (Iterator i = dbRefs.iterator(); i.hasNext(); dna
-                .addDBRef((DBRefEntry) i.next()))
-          ;
+        .addDBRef((DBRefEntry) i.next()))
+        ;
     }
     try
     {