Skip to content

Commit 2bbc824

Browse files
committed
Javadoc fix: remaining errors in structure module. Mostly obsolete references
1 parent 0c7e9f5 commit 2bbc824

File tree

13 files changed

+21
-29
lines changed

13 files changed

+21
-29
lines changed

biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/scop/ScopDescriptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
/**
33-
* @author Spencer Bliven <sbliven@ucsd.edu>
33+
* @author Spencer Bliven sbliven@ucsd.edu
3434
*
3535
*/
3636
public class ScopDescriptionTest {

biojava-structure/src/main/java/demo/DemoChangeChemCompProvider.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434

3535
/**
3636
* This demo shows how to use an alternative ChemCompProvider. The default mechanism in BioJava is to access chemical
37-
* componentsby using the {@link DownloadChemCompProvider}. It fetches and locally caches chemical component
38-
* definitions as they are encountered during file parsing. It can be enabled by using the
39-
* {@link FileParsingParameters#setLoadChemCompInfo(boolean)} method.
37+
* components by using the {@link DownloadChemCompProvider}. It fetches and locally caches chemical component
38+
* definitions as they are encountered during file parsing.
4039
* <p>
4140
* The {@link AllChemCompProvider} downloads and unpacks all chemcomps. It is slower and requires more memory than the
4241
* default {@link DownloadChemCompProvider}, but it avoids network access to the FTP site, if a new chemcomp is

biojava-structure/src/main/java/org/biojava/nbio/structure/align/model/AFPChain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ public void setSequentialAlignment(boolean sequentialAlignment) {
13121312
* up to the alignment algorithm.
13131313
*
13141314
* <p>Note:
1315-
* A {@link org.biojava.nbio.structure.gui.JMatrixPanel}, which is used in
1315+
* The org.biojava.nbio.structure.gui.JMatrixPanel, used in
13161316
* the structure-gui package to display distance matrices, will display the
13171317
* transpose of this matrix. Be sure to take that into account when debugging
13181318
* visually.

biojava-structure/src/main/java/org/biojava/nbio/structure/align/util/AlignmentTools.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,6 @@ public static <S,T> Map<S,T> applyAlignment(Map<S, T> alignmentMap, Map<T,S> ide
239239
}
240240
}
241241

242-
243-
244242
Map<S, T> imageMap = new HashMap<>(alignmentMap.size());
245243

246244
//TODO handle nulls consistently.
@@ -282,7 +280,7 @@ public static <S,T> Map<S,T> applyAlignment(Map<S, T> alignmentMap, Map<T,S> ide
282280
*/
283281
public static int getSymmetryOrder(Map<Integer, Integer> alignment,
284282
final int maxSymmetry, final float minimumMetricChange) {
285-
return getSymmetryOrder(alignment, new IdentityMap<Integer>(), maxSymmetry, minimumMetricChange);
283+
return getSymmetryOrder(alignment, new IdentityMap<>(), maxSymmetry, minimumMetricChange);
286284
}
287285
/**
288286
* Tries to detect symmetry in an alignment.

biojava-structure/src/main/java/org/biojava/nbio/structure/align/util/AtomCache.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,7 @@ public String getPath() {
464464
* <li>If only a PDB code is provided, the whole structure will be return including ligands, but the first model
465465
* only (for NMR).
466466
* <li>Chain IDs are case sensitive, PDB ids are not. To specify a particular chain write as: 4hhb.A or 4HHB.A</li>
467-
* <li>To specify a SCOP domain write a scopId e.g. d2bq6a1. Some flexibility can be allowed in SCOP domain names,
468-
* see {@link #setStrictSCOP(boolean)}</li>
467+
* <li>To specify a SCOP domain write a scopId e.g. d2bq6a1. </li>
469468
* <li>URLs are accepted as well</li>
470469
* </ul>
471470
*
@@ -672,7 +671,7 @@ public void setFileParsingParams(FileParsingParameters params) {
672671
*
673672
* <p>This setting may be silently ignored by implementations which do not have
674673
* access to the server to determine whether an entry is obsolete, such as
675-
* if {@link #isAutoFetch()} is false. Note that an obsolete entry may still be
674+
* certain {@link FetchBehavior}s. Note that an obsolete entry may still be
676675
* returned even this is FETCH_CURRENT if the entry is found locally.
677676
*
678677
* @param behavior Whether to fetch obsolete records
@@ -685,7 +684,7 @@ public void setObsoleteBehavior(ObsoleteBehavior behavior) {
685684
/**
686685
* Returns how this instance deals with obsolete entries. Note that this
687686
* setting may be ignored by some implementations or in some situations,
688-
* such as when {@link #isAutoFetch()} is false.
687+
* such as certain {@link FetchBehavior}s.
689688
*
690689
* <p>For most implementations, the default value is
691690
* {@link ObsoleteBehavior#THROW_EXCEPTION THROW_EXCEPTION}.

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public FileParsingParameters getFileParsingParameters(){
262262
* </ul>
263263
* <p>This setting may be silently ignored by implementations which do not have
264264
* access to the server to determine whether an entry is obsolete, such as
265-
* if {@link #isAutoFetch()} is false. Note that an obsolete entry may still be
265+
* certain {@link FetchBehavior}s. Note that an obsolete entry may still be
266266
* returned even this is FETCH_CURRENT if the entry is found locally.
267267
*
268268
* @param behavior Whether to fetch obsolete records
@@ -276,7 +276,7 @@ public void setObsoleteBehavior(ObsoleteBehavior behavior) {
276276
/**
277277
* Returns how this instance deals with obsolete entries. Note that this
278278
* setting may be ignored by some implementations or in some situations,
279-
* such as when {@link #isAutoFetch()} is false.
279+
* such as certain {@link FetchBehavior}s.
280280
*
281281
* <p>For most implementations, the default value is
282282
* {@link ObsoleteBehavior#THROW_EXCEPTION THROW_EXCEPTION}.
@@ -295,10 +295,9 @@ public ObsoleteBehavior getObsoleteBehavior() {
295295
public FetchBehavior getFetchBehavior() {
296296
return fetchBehavior;
297297
}
298+
298299
/**
299300
* Set the behavior for fetching files from the server.
300-
* This replaces the {@link #setAutoFetch(boolean)} method with a more
301-
* extensive set of options.
302301
* @param fetchBehavior
303302
*/
304303
public void setFetchBehavior(FetchBehavior fetchBehavior) {

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
* <p>
3636
* Several flags can be set for this class
3737
* <ul>
38-
*
39-
* <li> {@link #setAutoFetch(boolean)} - if the PDB file can not be found locally, should it be fetched
40-
* from the PDB ftp servers? (default:false)</li>
41-
* <li> Other parameters can be set using the {@link #setFileParsingParameters(FileParsingParameters)}</li>
38+
* <li> Parameters can be set using the {@link #setFileParsingParameters(FileParsingParameters)}</li>
4239
* </ul>
4340
*
4441
*<h2>Example</h2>

biojava-structure/src/main/java/org/biojava/nbio/structure/symmetry/internal/SequenceFunctionRefiner.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ public MultipleAlignment refine(AFPChain selfAlignment, Atom[] atoms,
6161

6262
/**
6363
* Refines a CE-Symm alignment so that it is perfectly symmetric.
64-
*
64+
* <p>
6565
* The resulting alignment will have a one-to-one correspondance between
6666
* aligned residues of each symmetric part.
6767
*
6868
* @param afpChain Input alignment from CE-Symm
69-
* @param k Symmetry order. This can be guessed by {@link CeSymm#getSymmetryOrder(AFPChain)}
69+
* @param k Symmetry order. This can be guessed by {@link AlignmentTools#getSymmetryOrder(Map, Map, int, float)}
7070
* @return The refined alignment
7171
* @throws StructureException
7272
* @throws RefinerFailedException
@@ -97,11 +97,11 @@ public static AFPChain refineSymmetry(AFPChain afpChain, Atom[] ca1, Atom[] ca2,
9797

9898
/**
9999
* Refines a CE-Symm alignment so that it is perfectly symmetric.
100-
*
100+
* <p>
101101
* The resulting alignment will have a one-to-one correspondance between
102102
* aligned residues of each symmetric part.
103103
* @param alignment The input alignment, as a map. This will be modified.
104-
* @param k Symmetry order. This can be guessed by {@link CeSymm#getSymmetryOrder(AFPChain)}
104+
* @param k Symmetry order. This can be guessed by {@link AlignmentTools#getSymmetryOrder(Map, Map, int, float)}
105105
* @return A modified map with the refined alignment
106106
* @throws StructureException
107107
*/

biojava-structure/src/test/java/org/biojava/nbio/structure/HetatomImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
/**
3131
*
32-
* @author Jules Jacobsen <jacobsen@ebi.ac.uk>
32+
* @author Jules Jacobsen jacobsen@ebi.ac.uk
3333
*/
3434
public class HetatomImplTest {
3535

biojava-structure/src/test/java/org/biojava/nbio/structure/PDBStatusTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import java.io.IOException;
2828

2929
/**
30-
* @author Spencer Bliven <sbliven@ucsd.edu>
30+
* @author Spencer Bliven sbliven@ucsd.edu
3131
*
3232
*/
3333
public class PDBStatusTest {

0 commit comments

Comments
 (0)