JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / ext / ensembl / EnsemblLookup.java
index 3dca1b7..0813ba8 100644 (file)
@@ -202,8 +202,8 @@ public class EnsemblLookup extends EnsemblRestClient
   }
 
   /**
-   * Calls the /lookup/id rest service and returns the response as a Map<String, Object>,
-   * or null if any error
+   * Calls the /lookup/id rest service and returns the response as a Map<String,
+   * Object>, or null if any error
    * 
    * @param identifier
    * @param objectType
@@ -211,15 +211,16 @@ public class EnsemblLookup extends EnsemblRestClient
    * @return
    */
   @SuppressWarnings("unchecked")
-  protected Map<String, Object> getResult(String identifier, String objectType)
+  protected Map<String, Object> getResult(String identifier,
+          String objectType)
   {
     List<String> ids = Arrays.asList(new String[] { identifier });
 
     try
     {
-      return (Map<String, Object>) getJSON(getUrl(identifier, objectType), ids, -1, MODE_MAP, null);
-    } 
-    catch (IOException | ParseException e)
+      return (Map<String, Object>) getJSON(getUrl(identifier, objectType),
+              ids, -1, MODE_MAP, null);
+    } catch (IOException | ParseException e)
     {
       System.err.println("Error parsing " + identifier + " lookup response "
               + e.getMessage());
@@ -266,10 +267,12 @@ public class EnsemblLookup extends EnsemblRestClient
       boolean reverseStrand = "-1".equals(strand);
       int toStart = reverseStrand ? end : start;
       int toEnd = reverseStrand ? start : end;
-      List<int[]> fromRange = Collections.singletonList(new int[] { 1,
-          fromEnd });
-      List<int[]> toRange = Collections.singletonList(new int[] { toStart,
-          toEnd });
+      List<int[]> fromRange = Collections
+              .singletonList(new int[]
+              { 1, fromEnd });
+      List<int[]> toRange = Collections
+              .singletonList(new int[]
+              { toStart, toEnd });
       final Mapping map = new Mapping(
               new MapList(fromRange, toRange, 1, 1));
       return new GeneLocus(species == null ? "" : species, assembly,