3253-omnibus save
[jalview.git] / src / jalview / ext / so / SequenceOntology.java
index 5a86fa1..0d631e6 100644 (file)
@@ -82,10 +82,10 @@ public class SequenceOntology implements SequenceOntologyI
    */
   public SequenceOntology()
   {
-    termsFound = new ArrayList<>();
-    termsNotFound = new ArrayList<>();
-    termsByDescription = new HashMap<>();
-    termIsA = new HashMap<>();
+    termsFound = new ArrayList<String>();
+    termsNotFound = new ArrayList<String>();
+    termsByDescription = new HashMap<String, Term>();
+    termIsA = new HashMap<Term, List<Term>>();
 
     loadOntologyZipFile("so-xp-simple.obo");
   }
@@ -404,7 +404,7 @@ public class SequenceOntology implements SequenceOntologyI
    */
   protected synchronized void findParents(Term childTerm)
   {
-    List<Term> result = new ArrayList<>();
+    List<Term> result = new ArrayList<Term>();
     for (Triple triple : ontology.getTriples(childTerm, null, isA))
     {
       Term parent = triple.getObject();