JAL-4090 JAL-1551 spotlessApply
[jalview.git] / src / jalview / io / AppletFormatAdapter.java
index 56e9fa1..8b7a4c2 100755 (executable)
@@ -215,8 +215,8 @@ public class AppletFormatAdapter
     } catch (Exception e)
     {
       e.printStackTrace();
-      jalview.bin.Console.errPrintln("Failed to read alignment using the '" + fileFormat
-              + "' reader.\n" + e);
+      jalview.bin.Console.errPrintln("Failed to read alignment using the '"
+              + fileFormat + "' reader.\n" + e);
 
       if (e.getMessage() != null
               && e.getMessage().startsWith(INVALID_CHARACTERS))
@@ -297,8 +297,8 @@ public class AppletFormatAdapter
     } catch (Exception e)
     {
       e.printStackTrace();
-      jalview.bin.Console.errPrintln("Failed to read alignment using the '" + format
-              + "' reader.\n" + e);
+      jalview.bin.Console.errPrintln("Failed to read alignment using the '"
+              + format + "' reader.\n" + e);
 
       if (e.getMessage() != null
               && e.getMessage().startsWith(INVALID_CHARACTERS))
@@ -424,8 +424,8 @@ public class AppletFormatAdapter
       String afileresp = afile.print(seqs, jvsuffix);
       if (afile.hasWarningMessage())
       {
-        jalview.bin.Console.errPrintln("Warning raised when writing as " + format
-                + " : " + afile.getWarningMessage());
+        jalview.bin.Console.errPrintln("Warning raised when writing as "
+                + format + " : " + afile.getWarningMessage());
       }
       return afileresp;
     } catch (Exception e)
@@ -502,8 +502,9 @@ public class AppletFormatAdapter
           memf += r.totalMemory() - r.freeMemory();
           if (al != null)
           {
-            jalview.bin.Console.outPrintln("Alignment contains " + al.getHeight()
-                    + " sequences and " + al.getWidth() + " columns.");
+            jalview.bin.Console.outPrintln("Alignment contains "
+                    + al.getHeight() + " sequences and " + al.getWidth()
+                    + " columns.");
             try
             {
               jalview.bin.Console.outPrintln(new AppletFormatAdapter()
@@ -519,7 +520,8 @@ public class AppletFormatAdapter
           {
             jalview.bin.Console.outPrintln("Couldn't read alignment");
           }
-          jalview.bin.Console.outPrintln("Read took " + (t1 / 1000.0) + " seconds.");
+          jalview.bin.Console
+                  .outPrintln("Read took " + (t1 / 1000.0) + " seconds.");
           jalview.bin.Console.outPrintln(
                   "Difference between free memory now and before is "
                           + (memf / (1024.0 * 1024.0) * 1.0) + " MB");
@@ -531,8 +533,8 @@ public class AppletFormatAdapter
       }
       else
       {
-        jalview.bin.Console.errPrintln("Ignoring argument '" + args[i] + "' (" + i
-                + "'th)- not a readable file.");
+        jalview.bin.Console.errPrintln("Ignoring argument '" + args[i]
+                + "' (" + i + "'th)- not a readable file.");
       }
       i++;
     }
@@ -559,8 +561,9 @@ public class AppletFormatAdapter
     DataSourceType protocol = null;
     if (debug)
     {
-      jalview.bin.Console.outPrintln("resolving datasource started with:\n>>file\n"
-              + file + ">>endfile");
+      jalview.bin.Console
+              .outPrintln("resolving datasource started with:\n>>file\n"
+                      + file + ">>endfile");
     }
 
     // This might throw a security exception in certain browsers
@@ -624,7 +627,8 @@ public class AppletFormatAdapter
     {
       if (debug)
       {
-        jalview.bin.Console.errPrintln("Exception when accessing content: " + e);
+        jalview.bin.Console
+                .errPrintln("Exception when accessing content: " + e);
       }
       fp = null;
     }
@@ -645,7 +649,8 @@ public class AppletFormatAdapter
         }
       } catch (Exception e)
       {
-        jalview.bin.Console.errPrintln("Failed to access content as paste!");
+        jalview.bin.Console
+                .errPrintln("Failed to access content as paste!");
         e.printStackTrace();
         fp = null;
       }
@@ -667,7 +672,8 @@ public class AppletFormatAdapter
         {
           if (debug)
           {
-            jalview.bin.Console.outPrintln("Format not identified. Inaccessible file.");
+            jalview.bin.Console.outPrintln(
+                    "Format not identified. Inaccessible file.");
           }
           return null;
         }
@@ -680,7 +686,8 @@ public class AppletFormatAdapter
         {
           if (debug)
           {
-            jalview.bin.Console.outPrintln("Protocol identified as " + protocol);
+            jalview.bin.Console
+                    .outPrintln("Protocol identified as " + protocol);
           }
           return protocol;
         }
@@ -698,7 +705,8 @@ public class AppletFormatAdapter
       {
         if (debug)
         {
-          jalview.bin.Console.errPrintln("File deemed not accessible via " + protocol);
+          jalview.bin.Console
+                  .errPrintln("File deemed not accessible via " + protocol);
           e.printStackTrace();
         }
       }