Skip to content

Commit 7246351

Browse files
committed
maven-javadoc-plugin: Enable legacyMode to bypass jzy3d JPMS error
While at it: Add class-level Javadocs, escape HTML entities in doc comments, and resolve lint warnings
1 parent 43c0d16 commit 7246351

10 files changed

Lines changed: 49 additions & 18 deletions

File tree

‎pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
<artifactId>maven-javadoc-plugin</artifactId>
193193
<configuration>
194194
<legacyMode>true</legacyMode>
195+
<detectJavaApiLink>false</detectJavaApiLink>
195196
<failOnError>false</failOnError>
196197
</configuration>
197198
</plugin>

‎src/main/java/sc/fiji/snt/analysis/AbstractConvexHull.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,19 @@ protected <T extends SNTPoint> AbstractConvexHull(final Collection<T> points) {
6868
boundarySize = -1;
6969
}
7070

71+
/** Computes the convex hull from the input points. */
7172
public abstract void compute();
7273

74+
/** Returns the area (2D) or volume (3D) of this convex hull. */
7375
public abstract double size();
7476

77+
/** Returns the perimeter (2D) or surface area (3D) of this convex hull. */
7578
public abstract double boundarySize();
7679

80+
/** Returns the intersection of this convex hull with the given hull(s). */
7781
public abstract AbstractConvexHull intersection(final AbstractConvexHull... convexHull);
7882

83+
/** Returns the bounding-box intersection of this hull with the given hull(s). */
7984
public BoundingBox intersectionBox(final AbstractConvexHull... convexHulls) {
8085
BoundingBox intersectionBb = new BoundingBox(points);
8186
for (final AbstractConvexHull convexHull : convexHulls)

‎src/main/java/sc/fiji/snt/analysis/sholl/gui/ShollOverlay.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@
4848
import ij.measure.Calibration;
4949

5050
/**
51-
* @author Tiago Ferreira
51+
* Renders Sholl analysis results as graphical overlays on an image,
52+
* including concentric shells, sampling points, and intersection counts.
5253
*
54+
* @author Tiago Ferreira
5355
*/
5456
public class ShollOverlay implements ProfileProperties {
5557

‎src/main/java/sc/fiji/snt/analysis/sholl/gui/ShollPlot.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@
5353
import sc.fiji.snt.util.ShollPoint;
5454

5555
/**
56-
* @author Tiago Ferreira
56+
* An ImageJ {@link Plot} for displaying Sholl analysis profiles, including
57+
* sampled data, fitted curves, and descriptive statistics.
5758
*
59+
* @author Tiago Ferreira
5860
*/
5961
public class ShollPlot extends Plot {
6062

‎src/main/java/sc/fiji/snt/annotation/BrainAnnotation.java‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,44 +43,47 @@ public interface BrainAnnotation {
4343
/** Character constant representing any hemisphere (null character) */
4444
public char ANY_HEMISPHERE = '\u0000';
4545

46-
/** @return the compartment's unique id */
46+
/** Returns the compartment's unique id. */
4747
public int id();
4848

49-
/** @return the compartment's name */
49+
/** Returns the compartment's name. */
5050
public String name();
5151

52-
/** @return the compartment's acronym */
52+
/** Returns the compartment's acronym. */
5353
public String acronym();
5454

55-
/** @return the compartment's alias(es) */
55+
/** Returns the compartment's alias(es). */
5656
public String[] aliases();
5757

58-
/** @return the mesh associated with this compartment */
58+
/** Returns the mesh associated with this compartment. */
5959
public OBJMesh getMesh();
6060

61-
/** @return whether this compartment is a sub-compartment of {@code annotation} */
61+
/** Returns whether this compartment is a sub-compartment of {@code annotation}. */
6262
public boolean isChildOf(BrainAnnotation annotation);
6363

64-
/** @return whether this compartment is a parentCompartment of {@code annotation} */
64+
/** Returns whether this compartment is a parent of {@code parentCompartment}. */
6565
public boolean isParentOf(final BrainAnnotation parentCompartment);
6666

67+
/** Returns the ontology depth of this compartment. */
6768
public int getOntologyDepth();
6869

69-
/** @return whether a mesh is available for this compartment */
70+
/** Returns whether a mesh is available for this compartment. */
7071
public boolean isMeshAvailable();
7172

7273
/**
74+
* Returns the ancestor of this compartment at the specified level.
75+
*
7376
* @param level the ancestor level as negative 1-based index. E.g., {@code -1}
7477
* retrieves the last ancestor (parent), {@code -2} retrieves the
7578
* second to last, etc
76-
* @return the ancestor of this compartment at the nth level
79+
* @return the ancestor at the given level
7780
*/
7881
public BrainAnnotation getAncestor(final int level);
7982

80-
/** @return the parent of this compartment */
83+
/** Returns the parent of this compartment. */
8184
public BrainAnnotation getParent();
8285

83-
/** @return the display color of this compartment (if known) */
86+
/** Returns the display color of this compartment (if known). */
8487
public ColorRGB color();
8588

8689
public static char getHemisphereFlag(final String hemisphere) {

‎src/main/java/sc/fiji/snt/gui/cmds/AddTextAnnotationCmd.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
@Plugin(type = Command.class, visible = false, label = "Add Annotation Label...", initializer = "init")
4545
public class AddTextAnnotationCmd extends InteractiveCommand {
4646

47+
/** Creates a new AddTextAnnotationCmd instance. */
48+
public AddTextAnnotationCmd() {}
49+
4750
@Parameter(label = "Text", required = false, description = "Font size")
4851
private String string;
4952

@@ -118,7 +121,7 @@ private int getStyle(final String style) {
118121
}
119122
}
120123

121-
/* IDE debug method **/
124+
/** IDE debug method. */
122125
public static void main(final String[] args) {
123126
GuiUtils.setLookAndFeel();
124127
final ImageJ ij = new ImageJ();

‎src/main/java/sc/fiji/snt/tracing/AbstractSearch.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ public abstract class AbstractSearch implements SearchInterface, Runnable {
4949

5050
protected final RandomAccessibleInterval<? extends RealType<?>> img;
5151
protected final RandomAccess<? extends RealType<?>> imgAccess;
52+
/** The width of the search image in pixels. */
5253
public final int imgWidth;
54+
/** The height of the search image in pixels. */
5355
public final int imgHeight;
56+
/** The depth (number of slices) of the search image. */
5457
public final int imgDepth;
5558
protected final long xMin;
5659
protected final long yMin;
@@ -198,8 +201,10 @@ protected void precomputeNeighborDistances() {
198201
}
199202
}
200203

204+
/** Registers a callback to receive progress updates during the search. */
201205
public abstract void addProgressListener(SearchProgressCallback callback);
202206

207+
/** Prints the current search status to the log. */
203208
public abstract void printStatus();
204209

205210
/*
@@ -208,6 +213,7 @@ protected void precomputeNeighborDistances() {
208213
*/
209214
protected abstract void reportPointsInSearch();
210215

216+
/** Returns the total number of points evaluated so far during the search. */
211217
public abstract long pointsConsideredInSearch();
212218

213219
}

‎src/main/java/sc/fiji/snt/tracing/auto/AbstractAutoTracer.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
*/
5959
public abstract class AbstractAutoTracer implements AutoTracer {
6060

61+
/** Creates a new AbstractAutoTracer instance. */
62+
protected AbstractAutoTracer() {}
63+
6164
protected Roi somaRoi;
6265
protected int somaRoiZPosition = -1; // Z-slice (0-indexed), -1 if unset
6366
protected int rootStrategy = ROI_UNSET;

‎src/main/java/sc/fiji/snt/tracing/auto/AbstractGWDTTracer.java‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@
6464
*/
6565
public abstract class AbstractGWDTTracer<T extends RealType<T>> extends AbstractAutoTracer {
6666

67-
// Fast Marching states
67+
/** Fast Marching state: voxel has not yet been reached. */
6868
public static final byte FAR = 0;
69+
/** Fast Marching state: voxel is in the narrow-band trial set. */
6970
public static final byte TRIAL = 1;
71+
/** Fast Marching state: voxel distance has been finalized. */
7072
public static final byte ALIVE = 2;
7173

7274
// Input
@@ -817,13 +819,13 @@ private double calculateRadiusFromImage(final long[] pos, final RandomAccess<T>
817819
* APP2-style dark node and segment pruning.
818820
* <p>
819821
* Phase 1: Dark Node Pruning (iterative)
820-
* - For each leaf, if intensity <= background threshold, remove the leaf
822+
* - For each leaf, if intensity &lt;= background threshold, remove the leaf
821823
* - Repeat until no more dark leaves found
822824
* <p>
823825
* Phase 2: Dark Segment Pruning
824826
* - For each terminal branch (path from leaf to branch point):
825-
* - Delete if average intensity <= background threshold, OR
826-
* - Delete if >= 20% of nodes are dark (intensity <= threshold)
827+
* - Delete if average intensity &lt;= background threshold, OR
828+
* - Delete if &gt;= 20% of nodes are dark (intensity &lt;= threshold)
827829
*/
828830
protected void darkNodeAndSegmentPruning(final DirectedWeightedGraph graph, final double effectiveThreshold) {
829831
final SWCPoint root = findGraphRoot(graph);
@@ -1444,6 +1446,7 @@ protected long posToIndex(final long[] pos) {
14441446
return posToIndex(pos, dims);
14451447
}
14461448

1449+
/** Converts an N-dimensional position to a flat array index using row-major order. */
14471450
public static long posToIndex(final long[] pos, final long[] dims) {
14481451
long idx = 0;
14491452
long stride = 1;

‎src/main/java/sc/fiji/snt/tracing/image/ListSearchImage.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
import java.util.Iterator;
3131

3232
/**
33+
* A {@link SearchImage} backed by an ImgLib2 {@link ListImg}, providing
34+
* list-based storage for path-search data structures.
35+
*
3336
* @author Cameron Arshadi
3437
*/
3538
public class ListSearchImage<V> implements SearchImage<V> {

0 commit comments

Comments
 (0)