formatting
[jalview.git] / src / jalview / io / packed / ParsePackedSet.java
index b611d5e..ac7c6df 100644 (file)
@@ -120,11 +120,13 @@ public class ParsePackedSet
           {
             br = new BufferedReader(src.getReader());
           }
-          if (new jalview.io.AnnotationFile()
-                  .parseAnnotationFrom(context.getLastAlignment(), br))
+          if (new jalview.io.AnnotationFile().parseAnnotationFrom(
+                  context.getLastAlignment(), br))
           {
             context.updateSetModified(true);
-          } else {
+          }
+          else
+          {
             errmsg = "Annotation file contained no data.";
           }
 
@@ -156,7 +158,7 @@ public class ParsePackedSet
         try
         {
           jalview.io.FeaturesFile ff = new jalview.io.FeaturesFile(src);
-          context.updateSetModified(ff.parse(context.getLastAlignment(), 
+          context.updateSetModified(ff.parse(context.getLastAlignment(),
                   context.featureColours, false, context.relaxedIdMatching));
         } catch (Exception e)
         {
@@ -189,19 +191,23 @@ public class ParsePackedSet
         }
 
       }
-      if (exerror!=null)
+      if (exerror != null)
       {
-        if (errmsg!=null && errmsg.length()>0)
+        if (errmsg != null && errmsg.length() > 0)
         {
-          throw new IOException(errmsg,exerror);
-        } else {
-          throw new IOException(errmsg,exerror);
+          throw new IOException(errmsg, exerror);
+        }
+        else
+        {
+          throw new IOException(errmsg, exerror);
         }
-      } else {
-      if (errmsg!=null && errmsg.length()>0)
-      {
-        throw new IOException(errmsg);
       }
+      else
+      {
+        if (errmsg != null && errmsg.length() > 0)
+        {
+          throw new IOException(errmsg);
+        }
       }
     }
     if (deuniquify)
@@ -287,10 +293,13 @@ public class ParsePackedSet
       // to buffers.
       // import with deuniquify info, and compare results to input.
 
-    } else {
+    }
+    else
+    {
       if (context.getLastAlignmentSet().isModified())
       {
-        System.err.println("Initial alignment set was modified and any associated views should be updated.");
+        System.err
+                .println("Initial alignment set was modified and any associated views should be updated.");
       }
     }
   }