Skip to content

Commit 29d8134

Browse files
authored
jme3-core: solve 10 javadoc diagnostics from JDK 11 (#1646)
* solve 3 JDK 11 javadoc warnings "@return has already been specified" * solve 7 JDK 11 javadoc errors "tag not supported..."
1 parent a54b978 commit 29d8134

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

jme3-core/src/main/java/checkers/quals/DefaultLocation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public enum DefaultLocation {
1515
ALL_EXCEPT_LOCALS,
1616

1717
/** Apply default annotations to unannotated upper bounds: both
18-
* explicit ones in <tt>extends</tt> clauses, and implicit upper bounds
19-
* when no explicit <tt>extends</tt> or <tt>super</tt> clause is
18+
* explicit ones in <code>extends</code> clauses, and implicit upper bounds
19+
* when no explicit <code>extends</code> or <code>super</code> clause is
2020
* present. */
2121
// Especially useful for parameterized classes that provide a lot of
2222
// static methods with the same generic parameters as the class.

jme3-core/src/main/java/com/jme3/bounding/BoundingSphere.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,7 @@ public void averagePoints(Vector3f[] points) {
382382
* the transform to apply
383383
* @param store
384384
* sphere to store result in
385-
* @return BoundingVolume
386-
* @return ref
385+
* @return either store or a new BoundingSphere
387386
*/
388387
@Override
389388
public BoundingVolume transform(Transform trans, BoundingVolume store) {

jme3-core/src/main/java/com/jme3/effect/ParticleEmitter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,6 @@ public void setInitialVelocity(Vector3f initialVelocity) {
870870
}
871871

872872
/**
873-
* @return the velocity variation
874873
* @deprecated
875874
* This method is deprecated.
876875
* Use ParticleEmitter.getParticleInfluencer().getVelocityVariation(); instead.

jme3-core/src/main/java/com/jme3/input/Input.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ public interface Input {
7777
/**
7878
* @return The current absolute time as nanoseconds. This time is expected
7979
* to be relative to the time given in InputEvents time property.
80-
*
81-
* @return the current time (in nanoseconds)
8280
*/
8381
public long getInputTimeNanos();
8482
}

jme3-core/src/main/java/com/jme3/math/FastMath.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,7 @@ public static float determinant(double m00, double m01, double m02,
846846
/**
847847
* Returns a random float between 0 and 1.
848848
*
849-
* @return A random float between <tt>0.0f</tt> (inclusive) to
850-
* <tt>1.0f</tt> (exclusive).
849+
* @return a random float between 0 (inclusive) and 1 (exclusive)
851850
*/
852851
public static float nextRandomFloat() {
853852
return rand.nextFloat();
@@ -858,8 +857,7 @@ public static float nextRandomFloat() {
858857
*
859858
* @param min the desired minimum value
860859
* @param max the desired maximum value
861-
* @return A random int between <tt>min</tt> (inclusive) to
862-
* <tt>max</tt> (inclusive).
860+
* @return a random int between min (inclusive) and max (inclusive)
863861
*/
864862
public static int nextRandomInt(int min, int max) {
865863
return (int) (nextRandomFloat() * (max - min + 1)) + min;

0 commit comments

Comments
 (0)