Skip to content

Commit b55dc80

Browse files
committed
Javadoc fix: errors in ontology module
1 parent 24310c3 commit b55dc80

8 files changed

Lines changed: 9 additions & 30 deletions

File tree

biojava-ontology/src/main/java/org/biojava/nbio/ontology/Ontology.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
* @author Matthew Pocock
4141
*
4242
* @since 1.4
43-
* @see org.biojavax.ontology.ComparableOntology
4443
*/
4544

4645
public interface Ontology {
@@ -129,7 +128,6 @@ public interface Ontology {
129128
* some other constraint of this implementation.
130129
* @throws AlreadyExistsException if a term of this name already exists
131130
* @return The newly created term.
132-
* @throws ChangeVetoException
133131
*/
134132

135133
public Term createTerm(String name)
@@ -148,7 +146,6 @@ public Term createTerm(String name)
148146
* some other constraint of this implementation.
149147
* @throws AlreadyExistsException if a term of this name already exists
150148
* @return The newly created term.
151-
* @throws ChangeVetoException
152149
*/
153150

154151
public Term createTerm(String name, String description)
@@ -168,7 +165,6 @@ public Term createTerm(String name, String description)
168165
* some other constraint of this implementation.
169166
* @throws AlreadyExistsException if a term of this name already exists
170167
* @return The newly created term.
171-
* @throws ChangeVetoException
172168
*/
173169

174170
public Term createTerm(String name, String description, Object[] synonyms)
@@ -187,7 +183,6 @@ public Term createTerm(String name, String description, Object[] synonyms)
187183
* some other constraint of this implementation.
188184
* @throws AlreadyExistsException if a term of this name already exists
189185
* @return The newly created term.
190-
* @throws ChangeVetoException
191186
*/
192187

193188
public Variable createVariable(String name, String description)
@@ -208,7 +203,6 @@ public Variable createVariable(String name, String description)
208203
* @param t the Term to import
209204
* @param localName the local name to import it under, optionally null
210205
* @return a Term
211-
* @throws ChangeVetoException
212206
* @throws IllegalArgumentException
213207
*/
214208

@@ -228,7 +222,6 @@ public Term importTerm(Term t, String localName)
228222
* @return a new Triple over these three terms
229223
* @throws AlreadyExistsException if a triple already exists with the same
230224
* subject, object and predicate, regardless of the name and description
231-
* @throws ChangeVetoException
232225
* @throws NullPointerException if subject, object or predicate are null
233226
* @throws IllegalArgumentException if subject, object or predicate are not all
234227
* from the same ontology
@@ -251,7 +244,6 @@ public Triple createTriple(Term subject, Term object, Term predicate, String nam
251244
/**
252245
* Remove a term from an ontology, together with all triples which refer to it.
253246
* @param t
254-
* @throws ChangeVetoException
255247
*/
256248

257249
public void deleteTerm(Term t) ;

biojava-ontology/src/main/java/org/biojava/nbio/ontology/Term.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333

3434
/**
35-
* A term in an ontology. This has an {@link org.biojava.nbio.Annotation Annotation}
35+
* A term in an ontology. This has an {@link Annotation Annotation}
3636
* which can be used for storing additional human-displayable information. It
3737
* is strongly recommended that the Annotation is not used for any machine-readable
3838
* data -- this should be represented by relations in the ontology instead.
@@ -51,9 +51,7 @@
5151
* @author Thomas Down
5252
* @author Matthew Pocock
5353
* @since 1.4
54-
* @see org.biojavax.ontology.ComparableTerm
5554
*/
56-
5755
public interface Term extends Annotatable {
5856
/**
5957
* ChangeType which indicates that this term's ontology has been
@@ -113,7 +111,6 @@ public interface Term extends Annotatable {
113111

114112
/**
115113
* Simple in-memory implementation of an ontology term.
116-
* @see org.biojavax.ontology.SimpleComparableTerm
117114
* This can be used to implement Ontology.createTerm
118115
*/
119116

biojava-ontology/src/main/java/org/biojava/nbio/ontology/Triple.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
* @author Thomas Down
4242
* @author Matthew Pocock
4343
* @since 1.4
44-
* @see org.biojavax.ontology.ComparableTriple
4544
*/
4645

4746
public interface Triple
@@ -79,7 +78,6 @@ public interface Triple
7978
* If you do not implement hashcode in this way then you have no guarantee
8079
* that your Triple objects will be found in an ontology and that they will
8180
* not be duplicated.
82-
* </p>
8381
*/
8482
@Override
8583
public int hashCode();
@@ -90,19 +88,18 @@ public interface Triple
9088
* <p>
9189
* Two triples are equivalent if they have the same subject, object and
9290
* predicate fields.
93-
* <pre>
91+
* <pre>{@code
9492
* if (! (o instanceof Triple)) {
9593
* return false;
9694
* }
9795
* Triple to = (Triple) o;
9896
* return to.getSubject() == getSubject() &&
9997
* to.getObject() == getObject() &&
10098
* to.getPredicate() == getPredicate();
101-
* </pre>
99+
* }</pre>
102100
* If you do not implement equals in this way then you have no guarantee
103101
* that your Triple objects will be found in an ontology and that they will
104102
* not be duplicated.
105-
* </p>
106103
*/
107104
@Override
108105
public boolean equals(Object obj);
@@ -111,9 +108,7 @@ public interface Triple
111108
* Basic in-memory implementation of a Triple in an ontology
112109
*
113110
* This can be used to implement Ontology.createTriple
114-
* @see org.biojavax.ontology.SimpleComparableTriple
115111
*/
116-
117112
public static final class Impl
118113

119114
implements Triple, java.io.Serializable {

biojava-ontology/src/main/java/org/biojava/nbio/ontology/io/TabDelimParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@
5454
* the core ontology.
5555
* </p>
5656
*
57-
* <code><pre>
57+
* <pre>
5858
* ...
5959
* triple is-a any
6060
* triple has-a source
6161
* triple has-a target
6262
* triple has-a predicate
6363
* (triple,has-a,any) size 3
6464
* ...
65-
* </pre></code>
65+
* </pre>
6666
*
6767
* <p>
6868
* The first four lines just associate triple with some type with a predicate

biojava-ontology/src/main/java/org/biojava/nbio/ontology/obo/OboFileParser.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@
3333
import java.util.*;
3434

3535

36-
/** A class to parse the content of an OBO file. It delegates handling of the
36+
/**
37+
* A class to parse the content of an OBO file. It delegates handling of the
3738
* content to the OBOFileEventListener implementation.
3839
*
3940
* This file contains parts of the OBO-Edit file OBOParseEngine, (particularly the encoding and decoding part)
4041
*
41-
* http://geneontology.cvs.sourceforge.net/geneontology/go-dev/java/oboedit/sources/org/geneontology/oboedit/dataadapter/OBOParseEngine.java?revision=1.10&view=markup
42+
* See <a href="http://geneontology.cvs.sourceforge.net/geneontology/go-dev/java/oboedit/sources/org/geneontology/oboedit/dataadapter/OBOParseEngine.java?revision=1.10&view=markup">link</a>
4243
* Thanks to the OboEdit developers for giving permission to release this in BioJava.
4344
*
4445
*

biojava-ontology/src/main/java/org/biojava/nbio/ontology/utils/Annotatable.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
* @author Matthew Pocock
7676
* @author <a href="mailto:[email protected]">Keith James</a> (docs).
7777
* @author Kalle Näslund (docs)
78-
* @see org.biojavax.RichAnnotatable
7978
* @since 1.0
8079
*/
8180
public interface Annotatable {

biojava-ontology/src/main/java/org/biojava/nbio/ontology/utils/Annotation.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
*
5454
* @author Matthew Pocock
5555
* @author Thomas Down
56-
* @see org.biojavax.RichAnnotation
5756
*
5857
*
5958
* @since 1.0
@@ -96,8 +95,6 @@ public interface Annotation {
9695
* @param value the new value for this key
9796
* @throws IllegalArgumentException if the property <code>key</code> is not
9897
* legal
99-
* @throws ChangeVetoException if this annotation object can't be changed, or
100-
* if the change was vetoed.
10198
*/
10299
void setProperty(Object key, Object value)
103100
;
@@ -108,7 +105,6 @@ void setProperty(Object key, Object value)
108105
*
109106
* @param key the key object
110107
* @throws NoSuchElementException if the property doesn't exist
111-
* @throws ChangeVetoException if the change is vetoed
112108
* @since 1.3
113109
*
114110
*/
@@ -147,7 +143,7 @@ public void removeProperty(Object key)
147143
* A really useful empty and immutable annotation object.
148144
* </p>
149145
*
150-
* Be careful when stooring Annotation arguments to
146+
* Be careful when storing Annotation arguments to
151147
* constructors. It is possible that you have been passed EMPTY_ANNOTATION but
152148
* that code later on will access this object believing it to be
153149
* mutable. For example, the SeqIO factory code clones some

biojava-ontology/src/main/java/org/biojava/nbio/ontology/utils/EmptyAnnotation.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
*
3636
* @since 1.0 as part of Annotation
3737
* @since 1.4 as top-level class
38-
* @see org.biojavax.EmptyRichAnnotation
3938
*/
4039
class EmptyAnnotation
4140

0 commit comments

Comments
 (0)