Skip to content

Commit ed7ab8e

Browse files
committed
Javadoc fix: a few errors from structure module
1 parent 71fe179 commit ed7ab8e

File tree

11 files changed

+19
-21
lines changed

11 files changed

+19
-21
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/BondImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class BondImpl implements Bond {
4444
* Note that by forming a bond between atoms 'A' and 'B' with this
4545
* constructor, atoms 'A' and 'B' will be updated to have this bond in their
4646
* list of bonds. If you do not want this automatic updating, instead use
47-
* {@link #Bond(Atom, Atom, int, boolean)} with the
47+
* {@link Bond(Atom, Atom, int, boolean)} with the
4848
* <code>addSelfToAtoms</code> flag set to <code>false</code>.
4949
*
5050
* @param atomA one of the atoms in this bond
@@ -83,7 +83,7 @@ public BondImpl(Atom atomA, Atom atomB, int bondOrder, boolean addSelfToAtoms) {
8383
* include this bond.
8484
* <p>
8585
* If you created your Bond with the constructor
86-
* {@link #Bond(Atom, Atom, int)}, this method has already been called for
86+
* {@link Bond(Atom, Atom, int)}, this method has already been called for
8787
* you and should not be called again.
8888
*/
8989
// TODO first check if those bonds haven't been made already

biojava-structure/src/main/java/org/biojava/nbio/structure/Calc.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ public static final double getPsi(AminoAcid a, AminoAcid b)
327327
}
328328

329329
/**
330-
* Test if two amino acids are connected, i.e. if the distance from C to N <
330+
* Test if two amino acids are connected, i.e. if the distance from C to N &lt;
331331
* 2.5 Angstrom.
332-
*
332+
* <p>
333333
* If one of the AminoAcids has an atom missing, returns false.
334334
*
335335
* @param a

biojava-structure/src/main/java/org/biojava/nbio/structure/Chain.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public interface Chain extends Serializable {
199199
* @return the length
200200
* @see #getAtomGroup(int)
201201
* @see #getAtomGroups()
202-
* @see #getSeqResLength())
202+
* @see #getSeqResLength()
203203
*/
204204
int getAtomLength();
205205

@@ -346,18 +346,20 @@ public interface Chain extends Serializable {
346346

347347
/**
348348
* Get the predominant {@link GroupType} for a given Chain, following these
349-
* rules: <li>if the ratio of number of residues of a certain
349+
* rules:
350+
* <ul>
351+
* <li>if the ratio of number of residues of a certain
350352
* {@link GroupType} to total non-water residues is above the threshold
351353
* {@value org.biojava.nbio.structure.StructureTools#RATIO_RESIDUES_TO_TOTAL}, then that {@link GroupType} is
352354
* returned</li> <li>if there is no {@link GroupType} that is above the
353355
* threshold then the {@link GroupType} with most members is chosen, logging
354356
* it</li>
357+
* </ul>
355358
* <p>
356359
* See also {@link ChemComp#getPolymerType()} and
357360
* {@link ChemComp#getResidueType()} which follow the PDB chemical component
358361
* dictionary and provide a much more accurate description of groups and
359362
* their linking.
360-
* </p>
361363
*
362364
* @return the predominant group type
363365
*/

biojava-structure/src/main/java/org/biojava/nbio/structure/align/multiple/Block.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public interface Block extends ScoresCache {
7272
* alignRes.get(structure).get(residue) = alignRes.get(size).get(length).
7373
*
7474
* @return List a double List of aligned residues for each structure.
75-
* @see #setAlignRes()
75+
* @see #setAlignRes(List)
7676
*/
7777
public List<List<Integer>> getAlignRes();
7878

@@ -108,7 +108,6 @@ public interface Block extends ScoresCache {
108108
* Block.
109109
*
110110
* @return int number of aligned residues.
111-
* @see #updateCoreLength()
112111
* @see #length()
113112
* @see #size()
114113
*/

biojava-structure/src/main/java/org/biojava/nbio/structure/align/multiple/BlockImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public class BlockImpl extends AbstractScoresCache implements Serializable,
5252
*
5353
* @param blockSet
5454
* the parent BlockSet of the BlockImpl instance.
55-
* @return BlockImpl a BlockImpl instance linked to its parent BlockSet.
5655
*/
5756
public BlockImpl(BlockSet blockSet) {
5857

@@ -69,7 +68,6 @@ public BlockImpl(BlockSet blockSet) {
6968
*
7069
* @param b
7170
* BlockImpl object to be copied.
72-
* @return BlockImpl an identical copy of the input BlockImpl object.
7371
*/
7472
public BlockImpl(BlockImpl b) {
7573

biojava-structure/src/main/java/org/biojava/nbio/structure/align/multiple/BlockSetImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public class BlockSetImpl extends AbstractScoresCache implements Serializable,
5555
*
5656
* @param alignment
5757
* MultipleAlignment parent of the BlockSet.
58-
* @return BlockSet an instance linked to the parent alignment.
5958
*/
6059
public BlockSetImpl(MultipleAlignment alignment) {
6160

@@ -76,7 +75,6 @@ public BlockSetImpl(MultipleAlignment alignment) {
7675
*
7776
* @param bs
7877
* BlockSet object to be copied.
79-
* @return BlockSet an identical copy of the input object.
8078
*/
8179
public BlockSetImpl(BlockSetImpl bs) {
8280

biojava-structure/src/main/java/org/biojava/nbio/structure/io/BondMaker.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public BondMaker(Structure structure, FileParsingParameters params) {
8989

9090
/**
9191
* Creates bond objects and corresponding references in Atom objects:
92+
* <ul>
9293
* <li>
9394
* peptide bonds: inferred from sequence and distances
9495
* </li>
@@ -98,6 +99,7 @@ public BondMaker(Structure structure, FileParsingParameters params) {
9899
* <li>
99100
* intra-group (residue) bonds: read from the chemical component dictionary, via {@link org.biojava.nbio.structure.chem.ChemCompProvider}
100101
* </li>
102+
* </ul>
101103
*/
102104
public void makeBonds() {
103105
logger.debug("Going to start making bonds");

biojava-structure/src/main/java/org/biojava/nbio/structure/io/StructureSequenceMatcher.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ public class StructureSequenceMatcher {
5959
* @param sequence The input protein sequence
6060
* @param wholeStructure The structure from which to take a substructure
6161
* @return The resulting structure
62-
* @throws StructureException
63-
* @see {@link #matchSequenceToStructure(ProteinSequence, Structure)}
62+
* @see #matchSequenceToStructure(ProteinSequence, Structure)
6463
*/
6564
public static Structure getSubstructureMatchingProteinSequence(ProteinSequence sequence, Structure wholeStructure) {
6665
ResidueNumber[] rns = matchSequenceToStructure(sequence, wholeStructure);
@@ -104,7 +103,7 @@ public static Structure getSubstructureMatchingProteinSequence(ProteinSequence s
104103
* @return A ProteinSequence with the full sequence of struct. Chains are
105104
* concatenated in the same order as the input structures
106105
*
107-
* @see {@link SeqRes2AtomAligner#getFullAtomSequence(List, Map)}, which
106+
* @see SeqRes2AtomAligner#getFullAtomSequence(List, Map, boolean), which
108107
* does the heavy lifting.
109108
*
110109
*/

biojava-structure/src/main/java/org/biojava/nbio/structure/quaternary/BioAssemblyTools.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,11 @@ public static double getBiologicalMoleculeMaximumExtend( final Structure structu
262262

263263
/**
264264
* Returns the centroid of the biological molecule.
265-
* @param structure
265+
* @param asymUnit
266266
* @return centroid
267267
* @throws IllegalArgumentException if structure is null
268268
*/
269-
270-
public static double[] getBiologicalMoleculeCentroid( final Structure asymUnit,List<BiologicalAssemblyTransformation> transformations ) {
269+
public static double[] getBiologicalMoleculeCentroid( final Structure asymUnit, List<BiologicalAssemblyTransformation> transformations ) {
271270
if ( asymUnit == null ) {
272271
throw new IllegalArgumentException( "null structure" );
273272
}

biojava-structure/src/main/java/org/biojava/nbio/structure/quaternary/BiologicalAssemblyBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public BiologicalAssemblyBuilder(){
7575
* Builds a Structure object containing the quaternary structure built from given asymUnit and transformations,
7676
* by adding symmetry partners as new models.
7777
* The output Structure will be different depending on the multiModel parameter:
78+
* <ul>
7879
* <li>
7980
* the symmetry-expanded chains are added as new models, one per transformId. All original models but
8081
* the first one are discarded.
@@ -83,6 +84,7 @@ public BiologicalAssemblyBuilder(){
8384
* as original with symmetry-expanded chains added with renamed chain ids and names (in the form
8485
* originalAsymId_transformId and originalAuthId_transformId)
8586
* </li>
87+
* </ul>
8688
* @param asymUnit
8789
* @param transformations
8890
* @param useAsymIds if true use {@link Chain#getId()} to match the ids in the BiologicalAssemblyTransformation (needed if data read from mmCIF),

0 commit comments

Comments
 (0)