JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / ext / ensembl / EnsemblXref.java
index eedfe97..4eeb977 100644 (file)
@@ -107,14 +107,14 @@ class EnsemblXref extends EnsemblRestClient
 
     try
     {
-      Iterator<Object> rvals = (Iterator<Object>) getJSON(getUrl(identifier), ids, -1, MODE_ITERATOR, null);
+      Iterator<Object> rvals = (Iterator<Object>) getJSON(
+              getUrl(identifier), ids, -1, MODE_ITERATOR, null);
       while (rvals.hasNext())
       {
         Map<String, Object> val = (Map<String, Object>) rvals.next();
         String db = val.get("dbname").toString();
         String id = val.get("primary_id").toString();
-        if (db != null && id != null
-                && !GO_GENE_ONTOLOGY.equals(db))
+        if (db != null && id != null && !GO_GENE_ONTOLOGY.equals(db))
         {
           db = DBRefUtils.getCanonicalName(db);
           DBRefEntry dbref = new DBRefEntry(db, getXRefVersion(), id);
@@ -128,23 +128,24 @@ class EnsemblXref extends EnsemblRestClient
     return result;
   }
 
-//  /**
-//   * Parses "primary_id" and "dbname" values from the JSON response and
-//   * constructs a DBRefEntry. Returns a list of the DBRefEntry created. Note we
-//   * don't parse "synonyms" as they appear to be either redirected or obsolete
-//   * in Uniprot.
-//   * 
-//   * @param br
-//   * @return
-//   * @throws IOException
-//   */
-//  @SuppressWarnings("unchecked")
-//protected List<DBRefEntry> parseResponse(BufferedReader br)
-//          throws IOException
-//  {
-//    return result;
-//  }
-//
+  // /**
+  // * Parses "primary_id" and "dbname" values from the JSON response and
+  // * constructs a DBRefEntry. Returns a list of the DBRefEntry created. Note
+  // we
+  // * don't parse "synonyms" as they appear to be either redirected or obsolete
+  // * in Uniprot.
+  // *
+  // * @param br
+  // * @return
+  // * @throws IOException
+  // */
+  // @SuppressWarnings("unchecked")
+  // protected List<DBRefEntry> parseResponse(BufferedReader br)
+  // throws IOException
+  // {
+  // return result;
+  // }
+  //
   private String xrefVersion = "ENSEMBL:0";
 
   /**
@@ -167,8 +168,8 @@ class EnsemblXref extends EnsemblRestClient
    */
   protected URL getUrl(String identifier)
   {
-    String url = getDomain() + "/xrefs/id/" + identifier
-            + CONTENT_TYPE_JSON + "&all_levels=1";
+    String url = getDomain() + "/xrefs/id/" + identifier + CONTENT_TYPE_JSON
+            + "&all_levels=1";
     try
     {
       return new URL(url);