Skip to content

Commit 682cc0c

Browse files
committed
fix: javadoc warnings
since they've started polluting CI run summaries...
1 parent 48d392f commit 682cc0c

47 files changed

Lines changed: 94 additions & 136 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎common-tools/clas-detector/src/main/java/org/jlab/detector/helicity/HelicityGenerator.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void addState(HelicityBit bit) {
145145
* Let the user add a state to initialize the sequence.
146146
*
147147
* This just calls {@link #addState(HelicityBit)} with the raw
148-
* {@link #HelicityBit} from the given {@link #HelicityState}.
148+
* {@link HelicityBit} from the given {@link HelicityState}.
149149
*
150150
* This must be the first helicity state in the next pattern. States
151151
* must be added serially and without skipped patterns. Requires

‎common-tools/clas-detector/src/main/java/org/jlab/detector/helicity/HelicitySequence.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public HelicityBit predictGenerated(long timestamp) {
297297
* Get whether the pseudo-random generator is initialized. This must be
298298
* true before calling the predict methods, because they require a working
299299
* generator. The number of valid states required to intialize the generator
300-
* is {@link HelicityGenerator.REGISTER_SIZE}.
300+
* is {@link HelicityGenerator#REGISTER_SIZE}.
301301
*
302302
* @return whether initialized
303303
*/

‎common-tools/clas-geometry/src/main/java/org/jlab/geom/detector/alert/AHDC/AlertDCWireIdentifier.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ else if (digit == 51) {
171171
/**
172172
* Convert layer number (from 0 to 7) to the superlayer-layer id (11,21,...,51)
173173
*
174-
* @param digit between 0 and 7
174+
* @param num between 0 and 7
175175
* @return layer number between (11,21,...,51)
176176
*/
177177
public static int number2layer(int num) {

‎common-tools/clas-geometry/src/main/java/org/jlab/geom/detector/fmt/FMTSuperlayer.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
/**
88
* A Forward Micromegas Tracker (FMT) {@link org.jlab.geom.base.Superlayer Superlayer}.
99
* <p>
10-
* Factory: {@link org.jlab.geom.detector.cnd.FMTFactory FMTFactory}<br>
10+
* Factory: {@link org.jlab.geom.detector.fmt.FMTFactory FMTFactory}<br>
1111
* Hierarchy:
1212
* <code>
13-
* {@link org.jlab.geom.detector.cnd.FMTDetector FMTDetector} →
14-
* {@link org.jlab.geom.detector.cnd.FMTSector FMTSector} →
15-
* <b>{@link org.jlab.geom.detector.cnd.FMTSuperlayer FMTSuperlayer}</b> →
16-
* {@link org.jlab.geom.detector.cnd.FMTLayer FMTLayer} →
13+
* {@link org.jlab.geom.detector.fmt.FMTDetector FMTDetector} →
14+
* {@link org.jlab.geom.detector.fmt.FMTSector FMTSector} →
15+
* <b>{@link org.jlab.geom.detector.fmt.FMTSuperlayer FMTSuperlayer}</b> →
16+
* {@link org.jlab.geom.detector.fmt.FMTLayer FMTLayer} →
1717
* {@link org.jlab.geom.component.TrackerStrip TrackerStrip}
1818
* </code>
1919
*

‎common-tools/clas-io/src/main/java/org/jlab/io/base/BasicDataBank.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,13 @@ public TableModel getTableModel(String mask) {
565565
if(entryMask.contains(columns[loop])==true||entryMask.size()<2){
566566
for(int row = 0; row < nrows; row++){
567567
if(this.byteContainer.containsKey(columns[loop])==true){
568-
objects[row][loop] = new Byte(this.getByte(columns[loop], row));
568+
objects[row][loop] = this.getByte(columns[loop], row);
569569
}
570570
if(this.shortContainer.containsKey(columns[loop])==true){
571-
objects[row][loop] = new Short(this.getShort(columns[loop], row));
571+
objects[row][loop] = this.getShort(columns[loop], row);
572572
}
573573
if(this.intContainer.containsKey(columns[loop])==true){
574-
objects[row][loop] = new Integer(this.getInt(columns[loop], row));
574+
objects[row][loop] = this.getInt(columns[loop], row);
575575
}
576576
if(this.floatContainer.containsKey(columns[loop])==true){
577577
//objects[row][loop] = new Float(this.getFloat(columns[loop], row));
@@ -581,7 +581,7 @@ public TableModel getTableModel(String mask) {
581581
objects[row][loop] = String.format("%12.5f",this.getDouble(columns[loop], row));
582582
}
583583
if(this.longContainer.containsKey(columns[loop])==true){
584-
objects[row][loop] = new Long(this.getLong(columns[loop], row));
584+
objects[row][loop] = this.getLong(columns[loop], row);
585585
}
586586
}
587587
}

‎common-tools/clas-jcsg/src/main/java/eu/mihosoft/vrl/v3d/ext/openjfx/importers/obj/FloatArrayList.java‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
* @see Collection
9595
* @see List
9696
* @see LinkedList
97-
* @see Vector
97+
* @see cnuphys.adaptiveSwim.geometry.Vector
9898
*
9999
* TODO replace with ObservableFloatArray
100100
*/
@@ -358,7 +358,6 @@ public float[] toFloatArray() {
358358
*
359359
* @param index index of the element to return
360360
* @return the element at the specified position in this list
361-
* @throws IndexOutOfBoundsException {@inheritDoc}
362361
*/
363362
@Override public Float get(int index) {
364363
rangeCheck(index);
@@ -372,7 +371,6 @@ public float[] toFloatArray() {
372371
* @param index index of the element to replace
373372
* @param element element to be stored at the specified position
374373
* @return the element previously at the specified position
375-
* @throws IndexOutOfBoundsException {@inheritDoc}
376374
*/
377375
@Override public Float set(int index, Float element) {
378376
rangeCheck(index);
@@ -400,7 +398,7 @@ public float[] toFloatArray() {
400398
*
401399
* @param index index at which the specified element is to be inserted
402400
* @param element element to be inserted
403-
* @throws IndexOutOfBoundsException {@inheritDoc}
401+
* @throws IndexOutOfBoundsException
404402
*/
405403
@Override public void add(int index, Float element) {
406404
rangeCheckForAdd(index);
@@ -419,7 +417,7 @@ public float[] toFloatArray() {
419417
*
420418
* @param index the index of the element to be removed
421419
* @return the element that was removed from the list
422-
* @throws IndexOutOfBoundsException {@inheritDoc}
420+
* @throws IndexOutOfBoundsException
423421
*/
424422
@Override public Float remove(int index) {
425423
rangeCheck(index);
@@ -511,7 +509,7 @@ private void fastRemove(int index) {
511509
* @param index index at which to insert the first element from the specified collection
512510
* @param c collection containing elements to be added to this list
513511
* @return <tt>true</tt> if this list changed as a result of the call
514-
* @throws IndexOutOfBoundsException {@inheritDoc}
512+
* @throws IndexOutOfBoundsException
515513
* @throws NullPointerException if the specified collection is null
516514
*/
517515
@Override public boolean addAll(int index, Collection<? extends Float> c) {
@@ -687,7 +685,7 @@ private void readObject(java.io.ObjectInputStream s)
687685
* </p>
688686
* <p>The returned list iterator is <a href="#fail-fast"><i>fail-fast</i></a>.
689687
*
690-
* @throws IndexOutOfBoundsException {@inheritDoc}
688+
* @throws IndexOutOfBoundsException
691689
*/
692690
@Override public ListIterator<Float> listIterator(int index) {
693691
if (index < 0 || index > size)
@@ -840,8 +838,8 @@ private class ListItr extends Itr implements ListIterator<Float> {
840838
* that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may
841839
* yield incorrect results.)
842840
*
843-
* @throws IndexOutOfBoundsException {@inheritDoc}
844-
* @throws IllegalArgumentException {@inheritDoc}
841+
* @throws IndexOutOfBoundsException
842+
* @throws IllegalArgumentException
845843
*/
846844
@Override public List<Float> subList(int fromIndex, int toIndex) {
847845
subListRangeCheck(fromIndex, toIndex, size);

‎common-tools/clas-jcsg/src/main/java/org/jlab/detector/geant4/v2/SVT/SVTVolumeFactory.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public class SVTVolumeFactory
9898
* Default: false
9999
* @deprecated
100100
*/
101+
@Deprecated
101102
public boolean HALFBOXES = false;
102103

103104

‎common-tools/clas-jcsg/src/main/java/org/jlab/detector/geant4/v2/SVT/Util.java‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -465,30 +465,6 @@ public static void scalePosition( Geant4Basic aVol, double aFactor )
465465
}
466466

467467

468-
/**
469-
* Recursively multiplies each linear dimension of the given volume and its children by the given scale factor.
470-
*
471-
* @param aVol volume
472-
* @param aFactor scale factor
473-
* @deprecated
474-
*/
475-
/*
476-
public static void scaleDimensions( Geant4Basic aVol, double aFactor, boolean bRecursive )
477-
{
478-
aVol.scaleDimensions( aFactor );
479-
//aVol.scale( aFactor );
480-
481-
if( bRecursive )
482-
{
483-
List<Geant4Basic> children = aVol.getChildren();
484-
for( int i = 0; i < children.size(); i++ )
485-
{
486-
scaleDimensions( children.get(i), aFactor, true ); // tail recursive
487-
}
488-
}
489-
}
490-
*/
491-
492468
/**
493469
* Translates the given volume's position by the given shifts.
494470
*

‎common-tools/clas-jcsg/src/main/java/org/jlab/detector/volume/Geant4Basic.java‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,16 +347,12 @@ public Line3d getLineZ() {
347347
//return new Line3d(new Vector3d(0, 0, 0), new Vector3d(0, 0, 0));
348348
}
349349

350-
/**
351-
* @author pdavies
352-
*/
350+
// written by pdavies
353351
public void setPosition(double x, double y, double z) {
354352
setPosition(new Vector3d(x, y, z));
355353
}
356354

357-
/**
358-
* @author pdavies
359-
*/
355+
// written by pdavies
360356
public void setPosition(Vector3d position) {
361357
this.translate(position.minus(this.getLocalPosition()));
362358
}

‎common-tools/clas-reco/src/main/java/org/jlab/clas/detector/DetectorParticle.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ public int getSector(DetectorType type) {
239239
* @deprecated
240240
* Just for backward compatibility for any external usage
241241
*/
242+
@Deprecated
242243
public int getSector(){
243244
return this.getSector(DetectorType.ECAL,1);
244245
}
@@ -313,6 +314,7 @@ public DetectorResponse getHit(DetectorType type, int layer) {
313314
* @deprecated
314315
* Just for backward compatibility for any external usage
315316
*/
317+
@Deprecated
316318
public DetectorResponse getResponse(DetectorType type, int layer){
317319
return this.getHit(type,layer);
318320
}

0 commit comments

Comments
 (0)