JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / ext / ensembl / EnsemblSymbol.java
index f731e94..ef79d72 100644 (file)
@@ -40,7 +40,9 @@ import org.json.simple.parser.ParseException;
 public class EnsemblSymbol extends EnsemblXref
 {
   private static final String GENE = "gene";
+
   private static final String TYPE = "type";
+
   /**
    * Constructor given the target domain to fetch data from
    * 
@@ -53,18 +55,18 @@ public class EnsemblSymbol extends EnsemblXref
     super(domain, dbName, dbVersion);
   }
 
-//  /**
-//   * Returns the first "id" value in gene identifier format from the JSON
-//   * response, or null if none found
-//   * 
-//   * @param br
-//   * @return
-//   * @throws IOException
-//   */
-//  @SuppressWarnings("unchecked")
-//protected String parseSymbolResponse(BufferedReader br) throws IOException
-//  {
-//  }
+  // /**
+  // * Returns the first "id" value in gene identifier format from the JSON
+  // * response, or null if none found
+  // *
+  // * @param br
+  // * @return
+  // * @throws IOException
+  // */
+  // @SuppressWarnings("unchecked")
+  // protected String parseSymbolResponse(BufferedReader br) throws IOException
+  // {
+  // }
 
   /**
    * Constructs the URL for the REST symbol endpoint
@@ -119,12 +121,14 @@ public class EnsemblSymbol extends EnsemblXref
       {
         for (Species taxon : Species.getModelOrganisms())
         {
-          String geneId = null;///parseSymbolResponse(br);          
+          String geneId = null;/// parseSymbolResponse(br);
           try
           {
-                       Iterator<Object> rvals = (Iterator<Object>) getJSON(getUrl(query, taxon, GENE), ids, -1, MODE_ITERATOR, null);
+            Iterator<Object> rvals = (Iterator<Object>) getJSON(
+                    getUrl(query, taxon, GENE), ids, -1, MODE_ITERATOR,
+                    null);
             if (rvals == null)
-               continue;
+              continue;
             while (rvals.hasNext())
             {
               Map<String, Object> val = (Map<String, Object>) rvals.next();
@@ -140,7 +144,7 @@ public class EnsemblSymbol extends EnsemblXref
           {
             // ignore
           }
-          
+
           if (geneId != null && !result.contains(geneId))
           {
             result.add(geneId);