Skip to content

Commit 015a59a

Browse files
committed
clarify javadoc (#1713)
* clarify javadoc * more javadoc clarification * ListSort: more javadpc * more javadoc refinements * ConstantVerifierState: "it's" -> "its"
1 parent 8282b10 commit 015a59a

68 files changed

Lines changed: 294 additions & 268 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.

jme3-android/src/main/java/com/jme3/util/AndroidBufferAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class AndroidBufferAllocator implements BufferAllocator {
8080
}
8181

8282
/**
83-
* This function search the inner direct buffer of the android specific wrapped buffer classes
83+
* Searches the inner direct buffer of the Android-specific wrapped buffer classes
8484
* and destroys it using the reflection allocator method.
8585
*
8686
* @param toBeDestroyed The direct buffer that will be "cleaned".

jme3-bullet/src/common/java/com/jme3/bullet/animation/BoneLink.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ protected BoneLink() {
110110
* created)
111111
* @param bone the linked bone (not null, alias created)
112112
* @param collisionShape the desired shape (not null, alias created)
113-
* @param linkConfig the link configuration (not null)
113+
* @param mass the desired mass (>0)
114114
* @param localOffset the location of the body's center (in the bone's local
115-
* coordinates, not null, unaffected)
115+
* coordinates, not null, unaffected)
116116
*/
117117
BoneLink(DacLinks control, Joint bone, CollisionShape collisionShape,
118118
float mass, Vector3f localOffset) {

jme3-bullet/src/common/java/com/jme3/bullet/animation/DacConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ abstract public class DacConfiguration extends AbstractPhysicsControl {
9191
*/
9292
private float torsoMass = 1f;
9393
/**
94-
* map linked bone names to masses
94+
* Maps linked bone names to masses.
9595
*/
9696
private Map<String, Float> blConfigMap = new HashMap<>(50);
9797
/**
98-
* map linked bone names to ranges of motion for createSpatialData()
98+
* Maps linked bone names to ranges of motion for createSpatialData().
9999
*/
100100
private Map<String, RangeOfMotion> jointMap = new HashMap<>(50);
101101
/**

jme3-bullet/src/common/java/com/jme3/bullet/animation/DacLinks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ public void prePhysicsTick(PhysicsSpace space, float timeStep) {
883883
* Add joints to connect the named bone/torso link with each of its
884884
* children. Also fill in the boneLinkList. Note: recursive!
885885
*
886-
* @param parentName the parent bone/torso link (not null)
886+
* @param parentLink the parent bone/torso link (not null)
887887
*/
888888
private void addJoints(PhysicsLink parentLink) {
889889
List<String> childNames = childNames(parentLink);

jme3-bullet/src/common/java/com/jme3/bullet/animation/PhysicsLink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ public void write(JmeExporter ex) throws IOException {
579579
/**
580580
* Create and configure a rigid body for this link.
581581
*
582-
* @param linkConfig the link configuration (not null)
582+
* @param mass the desired mass (&gt;0)
583583
* @param collisionShape the desired shape (not null, alias created)
584584
* @return a new instance, not in any PhysicsSpace
585585
*/

jme3-bullet/src/common/java/com/jme3/bullet/control/BetterCharacterControl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,16 @@
5656
import java.util.logging.Logger;
5757

5858
/**
59-
* This class is intended to replace the CharacterControl class.
59+
* Intended to replace the CharacterControl class.
6060
* <p>
6161
* A rigid body with cylinder collision shape is used and its velocity is set
6262
* continuously. A ray test is used to test whether the character is on the
6363
* ground.
6464
* <p>
6565
* The character keeps their own local coordinate system which adapts based on
66-
* the gravity working on the character so they will always stand upright.
66+
* the gravity working on the character, so it will always stand upright.
6767
* <p>
6868
* Motion in the local X-Z plane is damped.
69-
* <p>
70-
* This class is shared between JBullet and Native Bullet.
7169
*
7270
* @author normenhansen
7371
*/

jme3-core/src/main/java/com/jme3/anim/Joint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public final void update() {
115115
}
116116

117117
/**
118-
* Updates the model transforms for this bone, and, possibly the attach node
118+
* Updates the model transforms for this bone and for the attachments node
119119
* if not null.
120120
* <p>
121121
* The model transform of this bone is computed by combining the parent's

jme3-core/src/main/java/com/jme3/animation/Bone.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,8 @@ void blendAnimTransforms(Vector3f translation, Quaternion rotation, Vector3f sca
837837
}
838838

839839
/**
840-
* Sets local bind transform for bone.
841-
* Call setBindingPose() after all of the skeleton bones' bind transforms are set to save them.
840+
* Sets the local bind transform of the bone.
841+
* Call setBindingPose() after all of the bones' bind transforms are set to save them.
842842
*
843843
* @param translation the desired bind translation (not null, unaffected)
844844
* @param rotation the desired bind rotation (not null, unaffected)

jme3-core/src/main/java/com/jme3/app/Application.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ public interface Application {
5959
public LostFocusBehavior getLostFocusBehavior();
6060

6161
/**
62-
* Change the application's behavior when unfocused.
62+
* Changes the application's behavior when unfocused.
6363
*
6464
* By default, the application will
6565
* {@link LostFocusBehavior#ThrottleOnLostFocus throttle the update loop}
66-
* so as to not take 100% CPU usage when it is not in focus, e.g.
66+
* so as not to use 100% of the CPU when it is out of focus, e.g.
6767
* alt-tabbed, minimized, or obstructed by another window.
6868
*
6969
* @param lostFocusBehavior The new lost focus behavior to use.
@@ -82,15 +82,15 @@ public interface Application {
8282
public boolean isPauseOnLostFocus();
8383

8484
/**
85-
* Enable or disable pause on lost focus.
85+
* Enables or disables pause on lost focus.
8686
* <p>
8787
* By default, pause on lost focus is enabled.
8888
* If enabled, the application will stop updating
8989
* when it loses focus or becomes inactive (e.g. alt-tab).
9090
* For online or real-time applications, this might not be preferable,
91-
* so this feature should be set to disabled. For other applications,
92-
* it is best to keep it on so that CPU usage is not used when
93-
* not necessary.
91+
* so this feature should be disabled. For other applications,
92+
* it is best to keep it enabled so that CPU is not used
93+
* unnecessarily.
9494
*
9595
* @param pauseOnLostFocus True to enable pause on lost focus, false
9696
* otherwise.

jme3-core/src/main/java/com/jme3/app/LegacyApplication.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ public LostFocusBehavior getLostFocusBehavior() {
134134
}
135135

136136
/**
137-
* Change the application's behavior when unfocused.
137+
* Changes the application's behavior when unfocused.
138138
*
139139
* By default, the application will
140140
* {@link LostFocusBehavior#ThrottleOnLostFocus throttle the update loop}
141-
* so as to not take 100% CPU usage when it is not in focus, e.g.
142-
* alt-tabbed, minimized, or obstructed by another window.
141+
* so as not to use 100% of the CPU when out of focus, e.g.
142+
* alt-tabbed, minimized, or hidden by another window.
143143
*
144144
* @param lostFocusBehavior The new lost focus behavior to use.
145145
*
@@ -168,10 +168,9 @@ public boolean isPauseOnLostFocus() {
168168
* By default, pause on lost focus is enabled.
169169
* If enabled, the application will stop updating
170170
* when it loses focus or becomes inactive (e.g. alt-tab).
171-
* For online or real-time applications, this might not be preferable,
172-
* so this feature should be set to disabled. For other applications,
173-
* it is best to keep it on so that CPU usage is not used when
174-
* not necessary.
171+
* For online or real-time applications, this might be undesirable,
172+
* so this feature should be disabled. For other applications,
173+
* it is best to keep it enabled so the CPU is not used unnecessarily.
175174
*
176175
* @param pauseOnLostFocus True to enable pause on lost focus, false
177176
* otherwise.

0 commit comments

Comments
 (0)